#[repr(C)]pub struct CatchableType {
pub properties: u32,
pub type_descriptor: Ptr<TypeDescriptor>,
pub pmd: PMD,
pub size_or_offset: i32,
pub copy_function: Ptr,
}
Expand description
Describes a type that can catch this exception.
Fields
properties: u32
0x01
: simple type (can be copied by memmove)0x02
: can be caught by reference only0x04
: has virtual bases
type_descriptor: Ptr<TypeDescriptor>
Pointer to its type descriptor.
pmd: PMD
How to cast the thrown object to this type.
size_or_offset: i32
Object size.
copy_function: Ptr
Copy constructor address.
Trait Implementations
sourceimpl Clone for CatchableType
impl Clone for CatchableType
sourcefn clone(&self) -> CatchableType
fn clone(&self) -> CatchableType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CatchableType
impl Debug for CatchableType
sourceimpl Pod for CatchableType
impl Pod for CatchableType
sourcefn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a byte slice.
sourcefn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a mutable byte slice.
sourcefn as_data_view(&self) -> &DataView
fn as_data_view(&self) -> &DataView
Returns a data view into the object’s memory.
sourcefn 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.
sourcefn transmute_ref<T>(&self) -> &Twhere
T: Pod,
fn transmute_ref<T>(&self) -> &Twhere
T: Pod,
Safely transmutes references to another type. Read more
sourcefn transmute_mut<T>(&mut self) -> &mut Twhere
T: Pod,
fn transmute_mut<T>(&mut self) -> &mut Twhere
T: Pod,
Safely transmutes references to another type. Read more
impl Copy for CatchableType
Auto Trait Implementations
impl RefUnwindSafe for CatchableType
impl Send for CatchableType
impl Sync for CatchableType
impl Unpin for CatchableType
impl UnwindSafe for CatchableType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more