Struct intuicio_core::types::struct_type::Struct
source · 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 is_copy(&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: &Self) -> bool
pub fn find_fields<'a>( &'a self, query: StructFieldQuery<'a> ) -> impl Iterator<Item = &StructField> + '_
pub fn find_field<'a>( &'a self, query: StructFieldQuery<'a> ) -> Option<&StructField>
pub fn into_type(self) -> Type
Trait Implementations§
source§impl From<Struct> for NativeStructBuilder
impl From<Struct> for NativeStructBuilder
source§impl From<Struct> for RuntimeStructBuilder
impl From<Struct> for RuntimeStructBuilder
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