Struct cranelift_wasm::WasmFieldType 
source · pub struct WasmFieldType {
    pub element_type: WasmStorageType,
    pub mutable: bool,
}Expand description
The type of a struct field or array element.
Fields§
§element_type: WasmStorageTypeThe field’s element type.
mutable: boolWhether this field can be mutated or not.
Trait Implementations§
source§impl Clone for WasmFieldType
 
impl Clone for WasmFieldType
source§fn clone(&self) -> WasmFieldType
 
fn clone(&self) -> WasmFieldType
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 WasmFieldType
 
impl Debug for WasmFieldType
source§impl<'de> Deserialize<'de> for WasmFieldType
 
impl<'de> Deserialize<'de> for WasmFieldType
source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<WasmFieldType, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<WasmFieldType, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WasmFieldType
 
impl Display for WasmFieldType
source§impl Hash for WasmFieldType
 
impl Hash for WasmFieldType
source§impl PartialEq for WasmFieldType
 
impl PartialEq for WasmFieldType
source§impl Serialize for WasmFieldType
 
impl Serialize for WasmFieldType
source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TypeTrace for WasmFieldType
 
impl TypeTrace for WasmFieldType
source§fn trace_mut<F, E>(&mut self, func: &mut F) -> Result<(), E>
 
fn trace_mut<F, E>(&mut self, func: &mut F) -> Result<(), E>
Visit each edge, mutably. Read more
source§fn trace_engine_indices<F, E>(&self, func: &mut F) -> Result<(), E>
 
fn trace_engine_indices<F, E>(&self, func: &mut F) -> Result<(), E>
Trace all 
VMSharedTypeIndex edges, ignoring other edges.source§fn canonicalize_for_runtime_usage<F>(&mut self, module_to_engine: &mut F)
 
fn canonicalize_for_runtime_usage<F>(&mut self, module_to_engine: &mut F)
Canonicalize 
self by rewriting all type references inside self from
module-level interned type indices to engine-level interned type
indices. Read moresource§fn is_canonicalized_for_runtime_usage(&self) -> bool
 
fn is_canonicalized_for_runtime_usage(&self) -> bool
Is this type canonicalized for runtime usage?
source§fn canonicalize_for_hash_consing<F>(
    &mut self,
    rec_group_range: Range<ModuleInternedTypeIndex>,
    module_to_engine: &mut F,
)
 
fn canonicalize_for_hash_consing<F>( &mut self, rec_group_range: Range<ModuleInternedTypeIndex>, module_to_engine: &mut F, )
Canonicalize 
self by rewriting all type references inside self from
module-level interned type indices to either engine-level interned type
indices or recgroup-relative indices. Read moresource§fn is_canonicalized_for_hash_consing(&self) -> bool
 
fn is_canonicalized_for_hash_consing(&self) -> bool
Is this type canonicalized for hash consing?
impl Eq for WasmFieldType
impl StructuralPartialEq for WasmFieldType
Auto Trait Implementations§
impl Freeze for WasmFieldType
impl RefUnwindSafe for WasmFieldType
impl Send for WasmFieldType
impl Sync for WasmFieldType
impl Unpin for WasmFieldType
impl UnwindSafe for WasmFieldType
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§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)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.source§impl<T> IntoAnyhow for T
 
impl<T> IntoAnyhow for T
source§fn into_anyhow(self) -> Error
 
fn into_anyhow(self) -> Error
Converts 
self into an anyhow::Error.source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more