pub struct Item<'t, I> { /* private fields */ }
Expand description
Represents an entry in the type or id stream.
An Item
has been minimally processed and may not be correctly formed or even understood by
this library. To avoid copying, Items
s exist as references to data owned by the parent
ItemInformation
. Therefore, an Item
may not outlive its parent.
The data held by items can be parsed:
Type::parse
returnsTypeData
.Id::parse
returnsIdData
.
Implementations
sourceimpl<'t, I> Item<'t, I> where
I: ItemIndex,
impl<'t, I> Item<'t, I> where
I: ItemIndex,
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the the binary data length in the on-disk format.
Items are prefixed by a 16-bit length number, which is not included in this length.
Trait Implementations
impl<'t, I: Copy> Copy for Item<'t, I>
impl<'t, I> StructuralPartialEq for Item<'t, I>
Auto Trait Implementations
impl<'t, I> RefUnwindSafe for Item<'t, I> where
I: RefUnwindSafe,
impl<'t, I> Send for Item<'t, I> where
I: Send,
impl<'t, I> Sync for Item<'t, I> where
I: Sync,
impl<'t, I> Unpin for Item<'t, I> where
I: Unpin,
impl<'t, I> UnwindSafe for Item<'t, I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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