pub enum ComponentNameKind<'a> {
Label(&'a KebabStr),
Constructor(&'a KebabStr),
Method(ResourceFunc<'a>),
Static(ResourceFunc<'a>),
Interface(InterfaceName<'a>),
Dependency(DependencyName<'a>),
Url(UrlName<'a>),
Hash(HashName<'a>),
}
Expand description
Created via ComponentName::kind
and classifies a name.
Variants§
Label(&'a KebabStr)
a-b-c
Constructor(&'a KebabStr)
[constructor]a-b
Method(ResourceFunc<'a>)
[method]a-b.c-d
Static(ResourceFunc<'a>)
[static]a-b.c-d
Interface(InterfaceName<'a>)
wasi:http/types@2.0
Dependency(DependencyName<'a>)
locked-dep=foo:bar/baz
Url(UrlName<'a>)
url=https://...
Hash(HashName<'a>)
integrity=sha256:...
Trait Implementations§
Source§impl<'a> Clone for ComponentNameKind<'a>
impl<'a> Clone for ComponentNameKind<'a>
Source§fn clone(&self) -> ComponentNameKind<'a>
fn clone(&self) -> ComponentNameKind<'a>
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<'a> Debug for ComponentNameKind<'a>
impl<'a> Debug for ComponentNameKind<'a>
Source§impl Hash for ComponentNameKind<'_>
impl Hash for ComponentNameKind<'_>
Source§impl Ord for ComponentNameKind<'_>
impl Ord for ComponentNameKind<'_>
Source§fn cmp(&self, other: &ComponentNameKind<'_>) -> Ordering
fn cmp(&self, other: &ComponentNameKind<'_>) -> 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 ComponentNameKind<'_>
impl PartialEq for ComponentNameKind<'_>
Source§impl PartialOrd for ComponentNameKind<'_>
impl PartialOrd for ComponentNameKind<'_>
impl Eq for ComponentNameKind<'_>
Auto Trait Implementations§
impl<'a> Freeze for ComponentNameKind<'a>
impl<'a> RefUnwindSafe for ComponentNameKind<'a>
impl<'a> Send for ComponentNameKind<'a>
impl<'a> Sync for ComponentNameKind<'a>
impl<'a> Unpin for ComponentNameKind<'a>
impl<'a> UnwindSafe for ComponentNameKind<'a>
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> 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.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§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