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> Freeze for TestParameterCursor<'a>
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