Struct intuicio_essentials::prelude::Struct
source · pub struct Struct {
pub name: String,
pub module_name: Option<String>,
pub visibility: Visibility,
/* private fields */
}Fields§
§name: String§module_name: Option<String>§visibility: VisibilityImplementations§
source§impl Struct
impl Struct
pub fn is_runtime(&self) -> bool
pub fn is_native(&self) -> bool
pub fn is_send(&self) -> bool
pub fn is_sync(&self) -> bool
pub fn type_hash(&self) -> TypeHash
pub fn type_name(&self) -> &str
pub fn layout(&self) -> &Layout
pub fn fields(&self) -> &[StructField]
pub fn is_compatible(&self, other: &Struct) -> bool
pub fn find_fields<'a>( &'a self, query: StructFieldQuery<'a> ) -> impl Iterator<Item = &'a StructField> + 'a
pub fn find_field<'a>( &'a self, query: StructFieldQuery<'a> ) -> Option<&'a StructField>
sourcepub unsafe fn initialize(&self, pointer: *mut ())
pub unsafe fn initialize(&self, pointer: *mut ())
Trait Implementations§
source§impl From<Struct> for NativeStructBuilder
impl From<Struct> for NativeStructBuilder
source§fn from(value: Struct) -> NativeStructBuilder
fn from(value: Struct) -> NativeStructBuilder
Converts to this type from the input type.
source§impl From<Struct> for RuntimeStructBuilder
impl From<Struct> for RuntimeStructBuilder
source§fn from(value: Struct) -> RuntimeStructBuilder
fn from(value: Struct) -> RuntimeStructBuilder
Converts to this type from the input type.