pub struct AppleMakerNote<'a> { /* private fields */ }Expand description
Apple MakerNote inspection view. Other vendors remain opaque. No allocation or value copies; unknown entries are visible for audit/diff.
Implementations§
Source§impl<'a> AppleMakerNote<'a>
impl<'a> AppleMakerNote<'a>
Sourcepub fn parse(data: &'a [u8]) -> Option<Self>
pub fn parse(data: &'a [u8]) -> Option<Self>
Recognize an Apple note, bounded to 16 MiB and 4096 entries.
Sourcepub fn byte_order(&self) -> ByteOrder
pub fn byte_order(&self) -> ByteOrder
Byte order for interpreting numeric value bytes.
Sourcepub fn entries(
&self,
) -> impl Iterator<Item = Result<MakerNoteEntry<'a>, MakerNoteEntryError>> + '_
pub fn entries( &self, ) -> impl Iterator<Item = Result<MakerNoteEntry<'a>, MakerNoteEntryError>> + '_
Borrow all entries in order, reporting malformed entries individually.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AppleMakerNote<'a>
impl<'a> RefUnwindSafe for AppleMakerNote<'a>
impl<'a> Send for AppleMakerNote<'a>
impl<'a> Sync for AppleMakerNote<'a>
impl<'a> Unpin for AppleMakerNote<'a>
impl<'a> UnsafeUnpin for AppleMakerNote<'a>
impl<'a> UnwindSafe for AppleMakerNote<'a>
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