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§
Source§impl 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§
impl StructuralPartialEq for Hints
Auto Trait Implementations§
impl Freeze for Hints
impl RefUnwindSafe for Hints
impl Send for Hints
impl Sync for Hints
impl Unpin for Hints
impl UnwindSafe for Hints
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