Enum wast::component::CoreTypeUse
source · [−]pub enum CoreTypeUse<'a, T> {
Ref(CoreItemRef<'a, type>),
Inline(T),
}
Expand description
A reference to a core type defined in this component.
This is the same as TypeUse
, but accepts $T
as shorthand for
(type $T)
.
Variants
Ref(CoreItemRef<'a, type>)
The type that we’re referencing.
Inline(T)
The inline type.
Trait Implementations
sourceimpl<'a, T: Clone> Clone for CoreTypeUse<'a, T>
impl<'a, T: Clone> Clone for CoreTypeUse<'a, T>
sourcefn clone(&self) -> CoreTypeUse<'a, T>
fn clone(&self) -> CoreTypeUse<'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 CoreTypeUse<'a, T>
impl<'a, T: Debug> Debug for CoreTypeUse<'a, T>
sourceimpl<T> Default for CoreTypeUse<'_, T>
impl<T> Default for CoreTypeUse<'_, T>
sourceimpl<T> From<&'_ CoreTypeUse<'_, T>> for u32
impl<T> From<&'_ CoreTypeUse<'_, T>> for u32
sourcefn from(u: &CoreTypeUse<'_, T>) -> Self
fn from(u: &CoreTypeUse<'_, T>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for CoreTypeUse<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for CoreTypeUse<'a, T> where
T: Send,
impl<'a, T> Sync for CoreTypeUse<'a, T> where
T: Sync,
impl<'a, T> Unpin for CoreTypeUse<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for CoreTypeUse<'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