pub struct OutputName(pub(crate) String);Expand description
A derivation output name.
This is a derivation output name, so the ‘out’ or ‘bin’ bit that has been verified to not contain invalid characters.
Tuple Fields§
§0: StringImplementations§
Source§impl OutputName
impl OutputName
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true if this output name is the default of out.
Trait Implementations§
Source§impl AsRef<str> for OutputName
impl AsRef<str> for OutputName
Source§impl Clone for OutputName
impl Clone for OutputName
Source§fn clone(&self) -> OutputName
fn clone(&self) -> OutputName
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 OutputName
impl Debug for OutputName
Source§impl Default for OutputName
impl Default for OutputName
Source§impl<'de> Deserialize<'de> for OutputName
impl<'de> Deserialize<'de> for OutputName
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 Display for OutputName
impl Display for OutputName
Source§impl From<OutputName> for OutputSpec
impl From<OutputName> for OutputSpec
Source§fn from(output_name: OutputName) -> Self
fn from(output_name: OutputName) -> Self
Converts to this type from the input type.
Source§impl FromStr for OutputName
impl FromStr for OutputName
Source§impl Hash for OutputName
impl Hash for OutputName
Source§impl Ord for OutputName
impl Ord for OutputName
Source§fn cmp(&self, other: &OutputName) -> Ordering
fn cmp(&self, other: &OutputName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OutputName
impl PartialEq for OutputName
Source§fn eq(&self, other: &OutputName) -> bool
fn eq(&self, other: &OutputName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OutputName
impl PartialOrd for OutputName
Source§impl Serialize for OutputNamewhere
Self: Display,
impl Serialize for OutputNamewhere
Self: Display,
impl Eq for OutputName
impl StructuralPartialEq for OutputName
Auto Trait Implementations§
impl Freeze for OutputName
impl RefUnwindSafe for OutputName
impl Send for OutputName
impl Sync for OutputName
impl Unpin for OutputName
impl UnsafeUnpin for OutputName
impl UnwindSafe for OutputName
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.