Struct mun_memory::StructType
source · #[repr(C)]pub struct StructType<'t> { /* private fields */ }
Expand description
Reference information of a struct
Implementations§
source§impl<'t> StructType<'t>
impl<'t> StructType<'t>
sourcepub fn guid<'s>(&'s self) -> &'t Guidwhere
't: 's,
pub fn guid<'s>(&'s self) -> &'t Guidwhere
't: 's,
Returns the unique identifier of this struct
sourcepub fn memory_kind(&self) -> StructMemoryKind
pub fn memory_kind(&self) -> StructMemoryKind
Returns the memory type of this struct
sourcepub fn is_value_struct(&self) -> bool
pub fn is_value_struct(&self) -> bool
Returns true if this struct is a value struct. Value structs are passed by value and are not allocated by the garbage collector.
sourcepub fn is_gc_struct(&self) -> bool
pub fn is_gc_struct(&self) -> bool
Returns true if this struct is a garbage collected struct.
Trait Implementations§
source§impl<'t> Clone for StructType<'t>
impl<'t> Clone for StructType<'t>
source§fn clone(&self) -> StructType<'t>
fn clone(&self) -> StructType<'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<'t> Display for StructType<'t>
impl<'t> Display for StructType<'t>
source§impl<'t> From<StructType<'t>> for StructInfo
impl<'t> From<StructType<'t>> for StructInfo
source§fn from(ty: RustStructType<'t>) -> Self
fn from(ty: RustStructType<'t>) -> Self
Converts to this type from the input type.