pub struct NamespaceSegment(/* private fields */);Expand description
A namespace segment only contains these alphanumeric chars and the underscore.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for NamespaceSegment
impl AsRef<str> for NamespaceSegment
Source§impl Clone for NamespaceSegment
impl Clone for NamespaceSegment
Source§fn clone(&self) -> NamespaceSegment
fn clone(&self) -> NamespaceSegment
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 NamespaceSegment
impl Debug for NamespaceSegment
Source§impl<'de> Deserialize<'de> for NamespaceSegment
impl<'de> Deserialize<'de> for NamespaceSegment
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 NamespaceSegment
impl Display for NamespaceSegment
Source§impl FromStr for NamespaceSegment
impl FromStr for NamespaceSegment
Source§impl Hash for NamespaceSegment
impl Hash for NamespaceSegment
Source§impl Ord for NamespaceSegment
impl Ord for NamespaceSegment
Source§fn cmp(&self, other: &NamespaceSegment) -> Ordering
fn cmp(&self, other: &NamespaceSegment) -> Ordering
1.21.0 · 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 NamespaceSegment
impl PartialEq for NamespaceSegment
Source§impl PartialOrd for NamespaceSegment
impl PartialOrd for NamespaceSegment
Source§impl Serialize for NamespaceSegment
impl Serialize for NamespaceSegment
Source§impl TryFrom<NamespaceSegment> for Namespace
impl TryFrom<NamespaceSegment> for Namespace
Source§type Error = NamespaceError
type Error = NamespaceError
The type returned in the event of a conversion error.
impl Eq for NamespaceSegment
impl StructuralPartialEq for NamespaceSegment
Auto Trait Implementations§
impl Freeze for NamespaceSegment
impl RefUnwindSafe for NamespaceSegment
impl Send for NamespaceSegment
impl Sync for NamespaceSegment
impl Unpin for NamespaceSegment
impl UnwindSafe for NamespaceSegment
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
§impl<T> Casing<T> for T
impl<T> Casing<T> for T
§fn to_case(&self, case: Case<'_>) -> String
fn to_case(&self, case: Case<'_>) -> String
Convert the string into the given case. It will reference
self and create a new
String with the same pattern and delimeter as case. It will split on boundaries
defined at [Boundary::defaults()]. Read more§fn set_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
fn set_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
Creates a
StateConverter struct initialized with the boundaries provided. Read more§fn remove_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
fn remove_boundaries(&self, bs: &[Boundary]) -> StateConverter<'_, T>
Creates a
StateConverter struct initialized without the boundaries
provided. Read moreSource§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more