Enum wasmparser::names::ComponentNameKind
source · 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§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.