#[repr(transparent)]pub struct LegacyDerivedPath(DerivedPath);Expand description
Format a DerivedPath in the “legacy” format.
Normally a DerivedPath::Built it formatted like
/nix/store/00000000000000000000000000000000-test.drv^out. But in some
places (most notably in the Nix daemon protocol) a format like
/nix/store/00000000000000000000000000000000-test.drv!out is used.
This formatter implements FromStr and fmt::Display that use this format.
Tuple Fields§
§0: DerivedPathImplementations§
Source§impl LegacyDerivedPath
impl LegacyDerivedPath
pub fn from_path(path: DerivedPath) -> Self
pub fn as_path(&self) -> &DerivedPath
pub fn into_path(self) -> DerivedPath
Trait Implementations§
Source§impl Clone for LegacyDerivedPath
impl Clone for LegacyDerivedPath
Source§fn clone(&self) -> LegacyDerivedPath
fn clone(&self) -> LegacyDerivedPath
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 moreSource§impl Debug for LegacyDerivedPath
impl Debug for LegacyDerivedPath
Source§impl Display for LegacyDerivedPath
impl Display for LegacyDerivedPath
Source§impl<'a> From<&'a DerivedPath> for &'a LegacyDerivedPath
impl<'a> From<&'a DerivedPath> for &'a LegacyDerivedPath
Source§fn from(value: &'a DerivedPath) -> Self
fn from(value: &'a DerivedPath) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a LegacyDerivedPath> for &'a DerivedPath
impl<'a> From<&'a LegacyDerivedPath> for &'a DerivedPath
Source§fn from(value: &'a LegacyDerivedPath) -> Self
fn from(value: &'a LegacyDerivedPath) -> Self
Converts to this type from the input type.
Source§impl From<DerivedPath> for LegacyDerivedPath
impl From<DerivedPath> for LegacyDerivedPath
Source§fn from(value: DerivedPath) -> Self
fn from(value: DerivedPath) -> Self
Converts to this type from the input type.
Source§impl From<LegacyDerivedPath> for DerivedPath
impl From<LegacyDerivedPath> for DerivedPath
Source§fn from(value: LegacyDerivedPath) -> Self
fn from(value: LegacyDerivedPath) -> Self
Converts to this type from the input type.
Source§impl FromStr for LegacyDerivedPath
impl FromStr for LegacyDerivedPath
Source§impl Hash for LegacyDerivedPath
impl Hash for LegacyDerivedPath
Source§impl NixSerialize for LegacyDerivedPath
Available on crate feature daemon only.
impl NixSerialize for LegacyDerivedPath
Available on crate feature
daemon only.Source§impl PartialEq for LegacyDerivedPath
impl PartialEq for LegacyDerivedPath
Source§fn eq(&self, other: &LegacyDerivedPath) -> bool
fn eq(&self, other: &LegacyDerivedPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LegacyDerivedPath
impl StructuralPartialEq for LegacyDerivedPath
Auto Trait Implementations§
impl Freeze for LegacyDerivedPath
impl RefUnwindSafe for LegacyDerivedPath
impl Send for LegacyDerivedPath
impl Sync for LegacyDerivedPath
impl Unpin for LegacyDerivedPath
impl UnsafeUnpin for LegacyDerivedPath
impl UnwindSafe for LegacyDerivedPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.