#[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 only
  • 0x04: 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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns a zero-initialized instance of the type.
Returns the object’s memory as a byte slice.
Returns the object’s memory as a mutable byte slice.
Returns a data view into the object’s memory.
Returns a mutable data view into the object’s memory.
Safely transmutes to another type. Read more
Safely transmutes references to another type. Read more
Safely transmutes references to another type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.