Struct red4ext_rs::types::Type
source · pub struct Type(/* private fields */);
Expand description
An RTTI representation of a type.
Implementations§
source§impl Type
impl Type
pub fn name(&self) -> CName
pub fn size(&self) -> u32
pub fn alignment(&self) -> u32
pub fn kind(&self) -> TypeKind
pub fn allocator(&self) -> &IAllocator
pub fn as_class(&self) -> Option<&Class>
pub fn as_class_mut(&mut self) -> Option<&mut Class>
pub fn as_array(&self) -> Option<&ArrayType>
pub fn tagged(&self) -> TaggedType<'_>
pub unsafe fn to_string(&self, value: ValuePtr) -> RedString
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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