pub enum ComponentExternName<'a> {
Kebab(&'a str),
Interface(&'a str),
}
Expand description
The different names that can be assigned to component imports
Variants§
Kebab(&'a str)
This is a “kebab name” along the lines of “a-foo-bar”
Interface(&'a str)
This is an ID along the lines of “wasi:http/types@2.0”
Trait Implementations§
source§impl AsComponentExternName for ComponentExternName<'_>
impl AsComponentExternName for ComponentExternName<'_>
source§fn as_component_extern_name(&self) -> ComponentExternName<'_>
fn as_component_extern_name(&self) -> ComponentExternName<'_>
Converts this receiver into a
ComponentExternName
.source§impl<'a> Clone for ComponentExternName<'a>
impl<'a> Clone for ComponentExternName<'a>
source§fn clone(&self) -> ComponentExternName<'a>
fn clone(&self) -> ComponentExternName<'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 ComponentExternName<'a>
impl<'a> Debug for ComponentExternName<'a>
source§impl Encode for ComponentExternName<'_>
impl Encode for ComponentExternName<'_>
impl<'a> Copy for ComponentExternName<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ComponentExternName<'a>
impl<'a> Send for ComponentExternName<'a>
impl<'a> Sync for ComponentExternName<'a>
impl<'a> Unpin for ComponentExternName<'a>
impl<'a> UnwindSafe for ComponentExternName<'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