pub struct TestParameterCursor<'a> { /* private fields */ }
Expand description

Test parameter cursor. Should not be constructed directly, use TestReceiveContext or TestInitContext.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
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). Read more
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. Read more
Read a u64 in little-endian format.
Read a u32 in little-endian format.
Read a u16 in little-endian format.
Read a u8.
Read a i64 in little-endian format.
Read a i32 in little-endian format.
Read a i16 in little-endian format.
Read a i32 in little-endian format.
Load an array of the given size.
Seek to the new position. If successful, return the new position from the beginning of the stream. Read more
Get the cursor position counted from the beginning of the stream.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Get the current byte size.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.