pub struct Entry<'a, R> {
pub path: Option<Utf8PathBuf>,
pub content: Content<'a, R>,
}
Expand description
A single entry in a NAR file.
Fields§
§path: Option<Utf8PathBuf>
The path to the entry in the archive. The top-level entry
doesn’t have a path, so the first entry will have path = None
. This path
is the full path in the archive with all
parent paths combined. I.e. this is “some/subdir/my-file”, and
not just “my-file”.
content: Content<'a, R>
The contents of the entry.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> Freeze for Entry<'a, R>
impl<'a, R> !RefUnwindSafe for Entry<'a, R>
impl<'a, R> !Send for Entry<'a, R>
impl<'a, R> !Sync for Entry<'a, R>
impl<'a, R> Unpin for Entry<'a, R>
impl<'a, R> !UnwindSafe for Entry<'a, R>
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