Enum wast::component::ComponentTypeUse
source · [−]Expand description
A reference to a type defined in this component.
This is the same as TypeUse
, but accepts $T
as shorthand for
(type $T)
.
Variants
Ref(ItemRef<'a, type>)
The type that we’re referencing.
Inline(T)
The inline type.
Trait Implementations
sourceimpl<'a, T: Clone> Clone for ComponentTypeUse<'a, T>
impl<'a, T: Clone> Clone for ComponentTypeUse<'a, T>
sourcefn clone(&self) -> ComponentTypeUse<'a, T>
fn clone(&self) -> ComponentTypeUse<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T: Debug> Debug for ComponentTypeUse<'a, T>
impl<'a, T: Debug> Debug for ComponentTypeUse<'a, T>
sourceimpl<T> Default for ComponentTypeUse<'_, T>
impl<T> Default for ComponentTypeUse<'_, T>
sourceimpl<T> From<&'_ ComponentTypeUse<'_, T>> for u32
impl<T> From<&'_ ComponentTypeUse<'_, T>> for u32
sourcefn from(u: &ComponentTypeUse<'_, T>) -> Self
fn from(u: &ComponentTypeUse<'_, T>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ComponentTypeUse<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for ComponentTypeUse<'a, T> where
T: Send,
impl<'a, T> Sync for ComponentTypeUse<'a, T> where
T: Sync,
impl<'a, T> Unpin for ComponentTypeUse<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for ComponentTypeUse<'a, T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more