pub struct ProfileName(String);Expand description
A validated profile name (spec §6).
Tuple Fields§
§0: StringImplementations§
Source§impl ProfileName
impl ProfileName
Sourcepub fn parse(
name: &str,
platform: Platform,
) -> Result<ProfileName, InvalidReason>
pub fn parse( name: &str, platform: Platform, ) -> Result<ProfileName, InvalidReason>
Validates name against every spec §6 rule for platform.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for ProfileName
impl Clone for ProfileName
Source§fn clone(&self) -> ProfileName
fn clone(&self) -> ProfileName
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 ProfileName
impl Debug for ProfileName
Source§impl Display for ProfileName
impl Display for ProfileName
impl Eq for ProfileName
Source§impl Hash for ProfileName
impl Hash for ProfileName
Source§impl PartialEq for ProfileName
impl PartialEq for ProfileName
impl StructuralPartialEq for ProfileName
Auto Trait Implementations§
impl Freeze for ProfileName
impl RefUnwindSafe for ProfileName
impl Send for ProfileName
impl Sync for ProfileName
impl Unpin for ProfileName
impl UnsafeUnpin for ProfileName
impl UnwindSafe for ProfileName
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.