[][src]Struct solana_libra_canonical_serialization::SimpleDeserializer

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

An implementation of LCS deserializer (CanonicalDeserialize) for u8.

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]

pub fn is_empty(&self) -> bool[src]

Returns true if the deserializer has no remaining bytes to deserialize

pub fn len(&self) -> usize[src]

Returns the total length of the underlying bytes used by the deserializer

pub fn position(&self) -> u64[src]

Returns the current index into the bytes used by the deserializer

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.