pub enum TypeBounds {
Eq(u32),
SubResource,
}
Available on crate feature
component-model
only.Expand description
Represents the possible type bounds for type references.
Variants§
Eq(u32)
The type is bounded by equality to the type index specified.
SubResource
This type is a fresh resource type,
Trait Implementations§
Source§impl Clone for TypeBounds
impl Clone for TypeBounds
Source§fn clone(&self) -> TypeBounds
fn clone(&self) -> TypeBounds
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 Debug for TypeBounds
impl Debug for TypeBounds
Source§impl Encode for TypeBounds
impl Encode for TypeBounds
Source§impl From<TypeBounds> for TypeBounds
Available on crate feature wasmparser
only.
impl From<TypeBounds> for TypeBounds
Available on crate feature
wasmparser
only.Source§fn from(ty: TypeBounds) -> Self
fn from(ty: TypeBounds) -> Self
Converts to this type from the input type.
Source§impl Hash for TypeBounds
impl Hash for TypeBounds
Source§impl PartialEq for TypeBounds
impl PartialEq for TypeBounds
impl Copy for TypeBounds
impl Eq for TypeBounds
impl StructuralPartialEq for TypeBounds
Auto Trait Implementations§
impl Freeze for TypeBounds
impl RefUnwindSafe for TypeBounds
impl Send for TypeBounds
impl Sync for TypeBounds
impl Unpin for TypeBounds
impl UnwindSafe for TypeBounds
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