pub enum ContainerName {
CustomIdent(CustomIdent),
}
Variants§
CustomIdent(CustomIdent)
Implementations§
Source§impl ContainerName
impl ContainerName
Sourcepub const fn is_custom_ident(&self) -> bool
pub const fn is_custom_ident(&self) -> bool
Returns true
if self
is of variant CustomIdent
.
Sourcepub fn as_custom_ident(&self) -> Option<&CustomIdent>
pub fn as_custom_ident(&self) -> Option<&CustomIdent>
Returns Some
if self
is a reference of variant CustomIdent
, and None
otherwise.
Sourcepub fn as_mut_custom_ident(&mut self) -> Option<&mut CustomIdent>
pub fn as_mut_custom_ident(&mut self) -> Option<&mut CustomIdent>
Returns Some
if self
is a mutable reference of variant CustomIdent
, and None
otherwise.
Sourcepub fn expect_custom_ident(self) -> CustomIdentwhere
Self: Debug,
pub fn expect_custom_ident(self) -> CustomIdentwhere
Self: Debug,
Unwraps the value, yielding the content of CustomIdent
.
§Panics
Panics if the value is not CustomIdent
, with a panic message including the content of self
.
Sourcepub fn custom_ident(self) -> Option<CustomIdent>
pub fn custom_ident(self) -> Option<CustomIdent>
Returns Some
if self
is of variant CustomIdent
, and None
otherwise.
Trait Implementations§
Source§impl Clone for ContainerName
impl Clone for ContainerName
Source§fn clone(&self) -> ContainerName
fn clone(&self) -> ContainerName
Returns a copy 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 ContainerName
impl Debug for ContainerName
Source§impl EqIgnoreSpan for ContainerName
impl EqIgnoreSpan for ContainerName
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<CustomIdent> for ContainerName
impl From<CustomIdent> for ContainerName
Source§fn from(v: CustomIdent) -> Self
fn from(v: CustomIdent) -> Self
Converts to this type from the input type.
Source§impl Hash for ContainerName
impl Hash for ContainerName
Source§impl PartialEq for ContainerName
impl PartialEq for ContainerName
Source§impl Spanned for ContainerName
impl Spanned for ContainerName
impl Eq for ContainerName
impl StructuralPartialEq for ContainerName
Auto Trait Implementations§
impl Freeze for ContainerName
impl RefUnwindSafe for ContainerName
impl Send for ContainerName
impl Sync for ContainerName
impl Unpin for ContainerName
impl UnwindSafe for ContainerName
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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