pub struct Hints {
pub current_field_index: Option<FieldIndex>,
pub known_field_lengths: HashMap<FieldIndex, FieldLength>,
}
Expand description
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
sourceimpl Hints
impl Hints
sourcepub fn current_field_length(&self) -> Option<FieldLength>
pub fn current_field_length(&self) -> Option<FieldLength>
Gets the length of the field currently being read, if known.
Trait Implementations
sourceimpl PartialEq<Hints> for Hints
impl PartialEq<Hints> for Hints
impl StructuralPartialEq for Hints
Auto Trait Implementations
impl RefUnwindSafe for Hints
impl Send for Hints
impl Sync for Hints
impl Unpin for Hints
impl UnwindSafe for Hints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more