pub struct TestParameterCursor<'a> { /* private fields */ }👎Deprecated since 8.1.0: Deprecated in favor of concordium-smart-contract-testing.
Expand description
Test parameter cursor. Should not be constructed directly, use TestReceiveContext or TestInitContext.
Trait Implementations§
source§impl<'a> AsRef<[u8]> for TestParameterCursor<'a>
impl<'a> AsRef<[u8]> for TestParameterCursor<'a>
source§impl<'a> Read for TestParameterCursor<'a>
impl<'a> Read for TestParameterCursor<'a>
source§fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
Read a number of bytes into the provided buffer. The returned value is
Ok(n) if a read was successful, and n bytes were read (n could be
0).source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
Read exactly the required number of bytes. If not enough bytes could be
read the function returns
Err(_), and the contents of the given buffer
is unspecified.source§fn read_array<const N: usize>(&mut self) -> Result<[u8; N], ParseError>
fn read_array<const N: usize>(&mut self) -> Result<[u8; N], ParseError>
Load an array of the given size.
source§impl<'a> Seek for TestParameterCursor<'a>
impl<'a> Seek for TestParameterCursor<'a>
impl<'a> HasParameter for TestParameterCursor<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TestParameterCursor<'a>
impl<'a> Send for TestParameterCursor<'a>
impl<'a> Sync for TestParameterCursor<'a>
impl<'a> Unpin for TestParameterCursor<'a>
impl<'a> UnwindSafe for TestParameterCursor<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more