Struct protocol::hint::Hints[][src]

pub struct Hints {
    pub current_field_index: Option<FieldIndex>,
    pub known_field_lengths: HashMap<FieldIndex, FieldLength>,
}

Hints given when reading parcels.

Fields

current_field_index: Option<FieldIndex>known_field_lengths: HashMap<FieldIndex, FieldLength>

The fields for which a length prefix was already present earlier in the layout.

Implementations

impl Hints[src]

pub fn current_field_length(&self) -> Option<FieldLength>[src]

Gets the length of the field currently being read, if known.

Trait Implementations

impl Clone for Hints[src]

impl Debug for Hints[src]

impl Default for Hints[src]

impl PartialEq<Hints> for Hints[src]

impl StructuralPartialEq for Hints[src]

Auto Trait Implementations

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.