pub struct DirMetaRef<'a> { /* private fields */ }Expand description
A borrowed view of a serialized dirmeta object. The scalar fields decode on parse; the xattrs stay lazy.
Implementations§
Source§impl<'a> DirMetaRef<'a>
impl<'a> DirMetaRef<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<DirMetaRef<'a>>
pub fn parse(data: &'a [u8]) -> Result<DirMetaRef<'a>>
Parse the slice covering exactly a serialized dirmeta object.
Trait Implementations§
Source§impl<'a> Clone for DirMetaRef<'a>
impl<'a> Clone for DirMetaRef<'a>
impl<'a> Copy for DirMetaRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DirMetaRef<'a>
impl<'a> RefUnwindSafe for DirMetaRef<'a>
impl<'a> Send for DirMetaRef<'a>
impl<'a> Sync for DirMetaRef<'a>
impl<'a> Unpin for DirMetaRef<'a>
impl<'a> UnsafeUnpin for DirMetaRef<'a>
impl<'a> UnwindSafe for DirMetaRef<'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