pub struct OutputName(SmolStr);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.
Output names may also not be empty or be called drv.
Tuple Fields§
§0: SmolStrImplementations§
Source§impl OutputName
impl OutputName
pub fn as_str(&self) -> &str
Sourcepub fn from_static(s: &'static str) -> Result<Self, ParseOutputNameError>
pub fn from_static(s: &'static str) -> Result<Self, ParseOutputNameError>
Tries to construct from a &’static str.
pub const fn out() -> Self
Trait Implementations§
Source§impl AsRef<str> for OutputName
impl AsRef<str> for OutputName
Source§impl AtermWriteable for &OutputName
impl AtermWriteable for &OutputName
Source§impl Borrow<str> for OutputName
impl Borrow<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 String
impl From<&OutputName> for String
Source§fn from(value: &OutputName) -> Self
fn from(value: &OutputName) -> Self
Converts to this type from the input type.
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 From<OutputName> for String
impl From<OutputName> for String
Source§fn from(value: OutputName) -> Self
fn from(value: 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<&str> for OutputName
impl PartialEq<&str> for OutputName
Source§impl PartialEq<OutputName> for &str
impl PartialEq<OutputName> for &str
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 PartialEq<OutputName> for String
impl PartialEq<OutputName> for String
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 PartialEq<OutputName> for str
impl PartialEq<OutputName> for str
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 PartialEq<String> for OutputName
impl PartialEq<String> for OutputName
Source§impl PartialEq<str> for OutputName
impl PartialEq<str> for OutputName
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,
Source§impl TryFrom<String> for OutputName
impl TryFrom<String> for OutputName
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.