Struct concordium_std::ExternParameter
source · pub struct ExternParameter { /* private fields */ }
Expand description
A type representing the parameter to init and receive methods. Its trait implementations are backed by host functions.
Trait Implementations§
source§impl Default for ExternParameter
impl Default for ExternParameter
source§impl Read for ExternParameter
impl Read for ExternParameter
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 Seek for ExternParameter
impl Seek for ExternParameter
impl HasParameter for ExternParameter
Auto Trait Implementations§
impl RefUnwindSafe for ExternParameter
impl Send for ExternParameter
impl Sync for ExternParameter
impl Unpin for ExternParameter
impl UnwindSafe for ExternParameter
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