pub enum Nar {
Contents(NarFile),
Target(NixString),
Directory(Vec<NarDirectoryEntry>),
}
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nar
impl<'de> Deserialize<'de> for Nar
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> EntrySink<'a> for &'a mut Nar
impl<'a> EntrySink<'a> for &'a mut Nar
type DirectorySink = &'a mut Vec<NarDirectoryEntry>
type FileSink = &'a mut NarFile
fn become_directory(self) -> Self::DirectorySink
fn become_file(self) -> Self::FileSink
fn become_symlink(self, target: NixString)
Auto Trait Implementations§
impl Freeze for Nar
impl RefUnwindSafe for Nar
impl Send for Nar
impl Sync for Nar
impl Unpin for Nar
impl UnwindSafe for Nar
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