Enum wasmtime_environ::wasmparser::names::KebabNameKind
source · pub enum KebabNameKind<'a> {
Normal(&'a KebabStr),
Constructor(&'a KebabStr),
Method {
resource: &'a KebabStr,
name: &'a KebabStr,
},
Static {
resource: &'a KebabStr,
name: &'a KebabStr,
},
Id {
namespace: &'a KebabStr,
package: &'a KebabStr,
interface: &'a KebabStr,
version: Option<Version>,
},
}
Expand description
Created via KebabName::kind
and classifies a name.
Variants§
Normal(&'a KebabStr)
a-b-c
Constructor(&'a KebabStr)
[constructor]a-b
Method
[method]a-b.c-d
Static
[static]a-b.c-d
Id
Fields
wasi:http/types@2.0
Trait Implementations§
source§impl<'a> Clone for KebabNameKind<'a>
impl<'a> Clone for KebabNameKind<'a>
source§fn clone(&self) -> KebabNameKind<'a>
fn clone(&self) -> KebabNameKind<'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 KebabNameKind<'a>
impl<'a> Debug for KebabNameKind<'a>
source§impl Hash for KebabNameKind<'_>
impl Hash for KebabNameKind<'_>
source§impl PartialEq<KebabNameKind<'_>> for KebabNameKind<'_>
impl PartialEq<KebabNameKind<'_>> for KebabNameKind<'_>
source§fn eq(&self, other: &KebabNameKind<'_>) -> bool
fn eq(&self, other: &KebabNameKind<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KebabNameKind<'_>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KebabNameKind<'a>
impl<'a> Send for KebabNameKind<'a>
impl<'a> Sync for KebabNameKind<'a>
impl<'a> Unpin for KebabNameKind<'a>
impl<'a> UnwindSafe for KebabNameKind<'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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.