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§
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 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>
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.
Auto Trait Implementations§
impl Freeze for Struct
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