Struct move_vm_types::loaded_data::runtime_types::StructType
source · pub struct StructType {
pub fields: Vec<Type>,
pub abilities: AbilitySet,
pub type_parameters: Vec<StructTypeParameter>,
pub name: Identifier,
pub module: ModuleId,
pub struct_def: StructDefinitionIndex,
}
Fields§
§fields: Vec<Type>
§abilities: AbilitySet
§type_parameters: Vec<StructTypeParameter>
§name: Identifier
§module: ModuleId
§struct_def: StructDefinitionIndex
Implementations§
source§impl StructType
impl StructType
pub fn type_param_constraints( &self ) -> impl ExactSizeIterator<Item = &AbilitySet>
Trait Implementations§
source§impl Clone for StructType
impl Clone for StructType
source§fn clone(&self) -> StructType
fn clone(&self) -> StructType
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 StructType
impl Debug for StructType
source§impl Hash for StructType
impl Hash for StructType
source§impl Ord for StructType
impl Ord for StructType
source§fn cmp(&self, other: &StructType) -> Ordering
fn cmp(&self, other: &StructType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StructType> for StructType
impl PartialEq<StructType> for StructType
source§fn eq(&self, other: &StructType) -> bool
fn eq(&self, other: &StructType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StructType> for StructType
impl PartialOrd<StructType> for StructType
source§fn partial_cmp(&self, other: &StructType) -> Option<Ordering>
fn partial_cmp(&self, other: &StructType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more