pub struct GcExceptionLayout {
pub size: u32,
pub align: u32,
pub tag_offset: u32,
pub fields: Vec<GcStructLayoutField>,
}
Expand description
The layout for a GC-managed exception object.
This layout is only valid for use with the GC runtime that created it. It is not valid to use one GC runtime’s layout with another GC runtime, doing so is memory safe but will lead to general incorrectness like panics and wrong results.
All offsets are from the start of the object; that is, the size of the GC header (for example) is included in the offset.
Fields§
§size: u32
The size (in bytes) of this struct.
align: u32
The alignment (in bytes) of this struct.
tag_offset: u32
The offset of the VMTagImport pointer.
fields: Vec<GcStructLayoutField>
The fields of this exception object. The i
th entry contains
information about the i
th parameter in the associated tag
type.
Implementations§
Trait Implementations§
Source§impl Clone for GcExceptionLayout
impl Clone for GcExceptionLayout
Source§fn clone(&self) -> GcExceptionLayout
fn clone(&self) -> GcExceptionLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GcExceptionLayout
impl Debug for GcExceptionLayout
Source§impl From<GcExceptionLayout> for GcLayout
impl From<GcExceptionLayout> for GcLayout
Source§fn from(layout: GcExceptionLayout) -> Self
fn from(layout: GcExceptionLayout) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GcExceptionLayout
impl RefUnwindSafe for GcExceptionLayout
impl Send for GcExceptionLayout
impl Sync for GcExceptionLayout
impl Unpin for GcExceptionLayout
impl UnwindSafe for GcExceptionLayout
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