pub enum ComponentTypeUse<'a, T> {
Ref(ItemRef<'a, type>),
Inline(T),
}Available on crate feature
component-model only.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§
Trait Implementations§
Source§impl<'a, T: Clone> Clone for ComponentTypeUse<'a, T>
impl<'a, T: Clone> Clone for ComponentTypeUse<'a, T>
Source§fn clone(&self) -> ComponentTypeUse<'a, T>
fn clone(&self) -> ComponentTypeUse<'a, T>
Returns a duplicate 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, T: Debug> Debug for ComponentTypeUse<'a, T>
impl<'a, T: Debug> Debug for ComponentTypeUse<'a, T>
Source§impl<T> Default for ComponentTypeUse<'_, T>
impl<T> Default for ComponentTypeUse<'_, T>
Source§impl<T> From<&ComponentTypeUse<'_, T>> for u32
impl<T> From<&ComponentTypeUse<'_, T>> for u32
Source§fn from(u: &ComponentTypeUse<'_, T>) -> Self
fn from(u: &ComponentTypeUse<'_, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> Freeze for ComponentTypeUse<'a, T>where
T: Freeze,
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§
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