#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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.
impl<'t> Copy for StructType<'t>
Auto Trait Implementations§
impl<'t> Freeze for StructType<'t>
impl<'t> !RefUnwindSafe for StructType<'t>
impl<'t> !Send for StructType<'t>
impl<'t> !Sync for StructType<'t>
impl<'t> Unpin for StructType<'t>
impl<'t> !UnwindSafe for StructType<'t>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more