[][src]Trait concordium_std::HasParameter

pub trait HasParameter: Read {
    pub fn size(&self) -> u32;
}

Objects which can access parameters to contracts.

This trait has a Read supertrait which means that structured parameters can be directly deserialized by using .get() function from the Get trait.

The reuse of Read methods is the reason for the slightly strange choice of methods of this trait.

Required methods

pub fn size(&self) -> u32[src]

Get the size of the parameter to the method.

Loading content...

Implementors

impl HasParameter for Parameter[src]

impl<'a> HasParameter for Cursor<&'a [u8]>[src]

Loading content...