Struct dharitri_wasm::contract_base::ManagedSerializer
source · pub struct ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,{ /* private fields */ }Implementations§
source§impl<M> ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedSerializer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
pub fn new(api: M) -> Self
pub fn top_encode_to_managed_buffer<T: TopEncode>( &self, value: &T ) -> ManagedBuffer<M>
pub fn top_encode_to_boxed_bytes<T: TopEncode>(&self, value: &T) -> BoxedBytes
pub fn top_decode_from_managed_buffer<T: TopDecode>( &self, buffer: &ManagedBuffer<M> ) -> T
pub fn top_decode_from_byte_slice<T: TopDecode>(&self, slice: &[u8]) -> T
Auto Trait Implementations§
impl<M> RefUnwindSafe for ManagedSerializer<M>where
M: RefUnwindSafe,
impl<M> Send for ManagedSerializer<M>where
M: Send,
impl<M> Sync for ManagedSerializer<M>where
M: Sync,
impl<M> Unpin for ManagedSerializer<M>where
M: Unpin,
impl<M> UnwindSafe for ManagedSerializer<M>where
M: UnwindSafe,
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