Enum wasm_encoder::TypeBounds
source · pub enum TypeBounds {
Eq(u32),
SubResource,
}
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)