pub struct DirTreeRef<'a> { /* private fields */ }Expand description
A borrowed view of a serialized dirtree object.
Implementations§
Source§impl<'a> DirTreeRef<'a>
impl<'a> DirTreeRef<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<DirTreeRef<'a>>
pub fn parse(data: &'a [u8]) -> Result<DirTreeRef<'a>>
Parse the slice covering exactly a serialized dirtree object.
Sourcepub fn files(
&self,
) -> impl Iterator<Item = Result<(&'a str, Checksum)>> + use<'a>
pub fn files( &self, ) -> impl Iterator<Item = Result<(&'a str, Checksum)>> + use<'a>
Iterate file entries, validating each as visited.
Trait Implementations§
Source§impl<'a> Clone for DirTreeRef<'a>
impl<'a> Clone for DirTreeRef<'a>
Source§fn clone(&self) -> DirTreeRef<'a>
fn clone(&self) -> DirTreeRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DirTreeRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DirTreeRef<'a>
impl<'a> RefUnwindSafe for DirTreeRef<'a>
impl<'a> Send for DirTreeRef<'a>
impl<'a> Sync for DirTreeRef<'a>
impl<'a> Unpin for DirTreeRef<'a>
impl<'a> UnsafeUnpin for DirTreeRef<'a>
impl<'a> UnwindSafe for DirTreeRef<'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