pub struct Document<'a> { /* private fields */ }Implementations§
Source§impl<'a> Document<'a>
impl<'a> Document<'a>
pub fn parse(bytes: &'a [u8]) -> Result<Self, MetadataError>
pub const fn kind(&self) -> DocumentKind
pub fn index(self) -> Result<ImageIndex<'a>, MetadataError>
pub fn manifest(self) -> Result<ImageManifest<'a>, MetadataError>
Trait Implementations§
impl<'a> Copy for Document<'a>
impl<'a> Eq for Document<'a>
impl<'a> StructuralPartialEq for Document<'a>
Auto Trait Implementations§
impl<'a> Freeze for Document<'a>
impl<'a> RefUnwindSafe for Document<'a>
impl<'a> Send for Document<'a>
impl<'a> Sync for Document<'a>
impl<'a> Unpin for Document<'a>
impl<'a> UnsafeUnpin for Document<'a>
impl<'a> UnwindSafe for Document<'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