#[repr(C)]pub struct TypeDescriptor {
pub vftable: Ptr,
pub spare: Ptr<CStr>,
pub name: [u8; 0],
}Expand description
Represents the C++ std::type_info class returned by the typeid operator.
Fields§
§vftable: PtrVtable of the type_info class.
spare: Ptr<CStr>Used to keep the demangled name returned by type_info::name().
name: [u8; 0]Inlined mangled type name, nul terminated.
Trait Implementations§
Source§impl Debug for TypeDescriptor
impl Debug for TypeDescriptor
Source§impl Serialize for TypeDescriptor
impl Serialize for TypeDescriptor
impl Pod for TypeDescriptor
Auto Trait Implementations§
impl Freeze for TypeDescriptor
impl RefUnwindSafe for TypeDescriptor
impl Send for TypeDescriptor
impl Sync for TypeDescriptor
impl Unpin for TypeDescriptor
impl UnwindSafe for TypeDescriptor
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> PodMethods for T
impl<T> PodMethods for T
Source§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Returns the object’s memory as a mutable byte slice.
Source§fn as_data_view(&self) -> &DataView
fn as_data_view(&self) -> &DataView
Returns a data view into the object’s memory.
Source§fn as_data_view_mut(&mut self) -> &mut DataView
fn as_data_view_mut(&mut self) -> &mut DataView
Returns a mutable data view into the object’s memory.