pub struct BootfsParser { /* private fields */ }
Expand description
Parser for bootfs-formatted structures.
Implementations§
Source§impl BootfsParser
impl BootfsParser
Sourcepub fn create_from_vmo(vmo: Vmo) -> Result<BootfsParser, BootfsParserError>
pub fn create_from_vmo(vmo: Vmo) -> Result<BootfsParser, BootfsParserError>
Creates a BootfsParser from an existing VMO.
If vmo
contains invalid header data, BootfsParserError is returned.
pub fn iter( &self, ) -> impl Iterator<Item = Result<BootfsEntry, BootfsParserError>> + '_
pub fn zero_copy_iter( &self, ) -> impl Iterator<Item = Result<BootfsEntry, BootfsParserError>> + '_
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootfsParser
impl RefUnwindSafe for BootfsParser
impl Send for BootfsParser
impl Sync for BootfsParser
impl Unpin for BootfsParser
impl UnwindSafe for BootfsParser
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