[][src]Struct solana_libra_canonical_serialization::SimpleDeserializer

pub struct SimpleDeserializer<'a> { /* fields omitted */ }

Methods

impl<'a> SimpleDeserializer<'a>[src]

pub fn new<T: ?Sized>(raw_bytes: &'a T) -> Self where
    T: AsRef<[u8]>, 
[src]

pub fn deserialize<T>(data: &'a [u8]) -> Result<T> where
    T: CanonicalDeserialize
[src]

Trait Implementations

impl<'a> CanonicalDeserializer for SimpleDeserializer<'a>[src]

fn decode_struct<T>(&mut self) -> Result<T> where
    T: CanonicalDeserialize,
    Self: Sized
[src]

impl<'a> Clone for SimpleDeserializer<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Sync for SimpleDeserializer<'a>

impl<'a> Send for SimpleDeserializer<'a>

impl<'a> Unpin for SimpleDeserializer<'a>

impl<'a> RefUnwindSafe for SimpleDeserializer<'a>

impl<'a> UnwindSafe for SimpleDeserializer<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]