pub struct TargetName(/* private fields */);Expand description
A validated target name (e.g., “build”, “test”, “lint”).
Must be non-empty and contain only lowercase alphanumeric characters, hyphens, and underscores.
Implementations§
Trait Implementations§
Source§impl Clone for TargetName
impl Clone for TargetName
Source§fn clone(&self) -> TargetName
fn clone(&self) -> TargetName
Returns a duplicate of the value. Read more
1.0.0 · 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 TargetName
impl Debug for TargetName
Source§impl<'de> Deserialize<'de> for TargetName
impl<'de> Deserialize<'de> for TargetName
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 TargetName
impl Display for TargetName
Source§impl From<TargetName> for String
impl From<TargetName> for String
Source§fn from(name: TargetName) -> Self
fn from(name: TargetName) -> Self
Converts to this type from the input type.
Source§impl FromStr for TargetName
impl FromStr for TargetName
Source§impl Hash for TargetName
impl Hash for TargetName
Source§impl PartialEq for TargetName
impl PartialEq for TargetName
Source§impl Serialize for TargetName
impl Serialize for TargetName
Source§impl TryFrom<String> for TargetName
impl TryFrom<String> for TargetName
impl Eq for TargetName
impl StructuralPartialEq for TargetName
Auto Trait Implementations§
impl Freeze for TargetName
impl RefUnwindSafe for TargetName
impl Send for TargetName
impl Sync for TargetName
impl Unpin for TargetName
impl UnsafeUnpin for TargetName
impl UnwindSafe for TargetName
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§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.