pub struct InterfaceName<T = String> { /* private fields */ }Expand description
Name of an interface
Implementations§
Source§impl<T> InterfaceName<T>
impl<T> InterfaceName<T>
Sourcepub fn from_str_ref(value: T) -> Result<Self, InterfaceNameError>
pub fn from_str_ref(value: T) -> Result<Self, InterfaceNameError>
Validate an interface name.
Implements from for a generic T with AsRef<T>.
Sourcepub fn into_string(self) -> InterfaceName<String>
pub fn into_string(self) -> InterfaceName<String>
Converts the Interface name inner type into a string.
Trait Implementations§
Source§impl<T> AsRef<str> for InterfaceName<T>
impl<T> AsRef<str> for InterfaceName<T>
Source§impl<T: Clone> Clone for InterfaceName<T>
impl<T: Clone> Clone for InterfaceName<T>
Source§fn clone(&self) -> InterfaceName<T>
fn clone(&self) -> InterfaceName<T>
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<T: Debug> Debug for InterfaceName<T>
impl<T: Debug> Debug for InterfaceName<T>
Source§impl Display for InterfaceName
impl Display for InterfaceName
Source§impl<'a> From<&'a InterfaceName> for InterfaceName<Cow<'a, str>>
impl<'a> From<&'a InterfaceName> for InterfaceName<Cow<'a, str>>
Source§fn from(value: &'a InterfaceName) -> Self
fn from(value: &'a InterfaceName) -> Self
Converts to this type from the input type.
Source§impl<T> From<InterfaceName<T>> for String
impl<T> From<InterfaceName<T>> for String
Source§fn from(value: InterfaceName<T>) -> Self
fn from(value: InterfaceName<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for InterfaceName<T>
impl<T: Hash> Hash for InterfaceName<T>
Source§impl<T: Ord> Ord for InterfaceName<T>
impl<T: Ord> Ord for InterfaceName<T>
Source§fn cmp(&self, other: &InterfaceName<T>) -> Ordering
fn cmp(&self, other: &InterfaceName<T>) -> 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<T: PartialEq> PartialEq for InterfaceName<T>
impl<T: PartialEq> PartialEq for InterfaceName<T>
Source§fn eq(&self, other: &InterfaceName<T>) -> bool
fn eq(&self, other: &InterfaceName<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd> PartialOrd for InterfaceName<T>
impl<T: PartialOrd> PartialOrd for InterfaceName<T>
impl<T: Copy> Copy for InterfaceName<T>
impl<T: Eq> Eq for InterfaceName<T>
impl<T> StructuralPartialEq for InterfaceName<T>
Auto Trait Implementations§
impl<T> Freeze for InterfaceName<T>where
T: Freeze,
impl<T> RefUnwindSafe for InterfaceName<T>where
T: RefUnwindSafe,
impl<T> Send for InterfaceName<T>where
T: Send,
impl<T> Sync for InterfaceName<T>where
T: Sync,
impl<T> Unpin for InterfaceName<T>where
T: Unpin,
impl<T> UnsafeUnpin for InterfaceName<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InterfaceName<T>where
T: UnwindSafe,
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§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.