pub struct Struct {
pub meta: Option<Meta>,
pub name: String,
pub module_name: Option<String>,
pub visibility: Visibility,
/* private fields */
}
Fields§
§meta: Option<Meta>
§name: String
§module_name: Option<String>
§visibility: Visibility
Implementations§
§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 can_initialize(&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>
pub unsafe fn initialize(&self, pointer: *mut ()) -> bool
pub unsafe fn initialize(&self, pointer: *mut ()) -> bool
Trait Implementations§
§impl From<Struct> for NativeStructBuilder
impl From<Struct> for NativeStructBuilder
§fn from(value: Struct) -> NativeStructBuilder
fn from(value: Struct) -> NativeStructBuilder
Converts to this type from the input type.
§impl From<Struct> for RuntimeStructBuilder
impl From<Struct> for RuntimeStructBuilder
§fn from(value: Struct) -> RuntimeStructBuilder
fn from(value: Struct) -> RuntimeStructBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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