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