pub enum GcLayout {
Array(GcArrayLayout),
Struct(GcStructLayout),
}
Expand description
The layout of a GC-managed object.
Variants§
Array(GcArrayLayout)
The layout of a GC-managed array object.
Struct(GcStructLayout)
The layout of a GC-managed struct object.
Implementations§
Source§impl GcLayout
impl GcLayout
Sourcepub fn unwrap_struct(&self) -> &GcStructLayout
pub fn unwrap_struct(&self) -> &GcStructLayout
Get the underlying GcStructLayout
, or panic.
Sourcepub fn unwrap_array(&self) -> &GcArrayLayout
pub fn unwrap_array(&self) -> &GcArrayLayout
Get the underlying GcArrayLayout
, or panic.
Trait Implementations§
Source§impl From<GcArrayLayout> for GcLayout
impl From<GcArrayLayout> for GcLayout
Source§fn from(layout: GcArrayLayout) -> Self
fn from(layout: GcArrayLayout) -> Self
Converts to this type from the input type.
Source§impl From<GcStructLayout> for GcLayout
impl From<GcStructLayout> for GcLayout
Source§fn from(layout: GcStructLayout) -> Self
fn from(layout: GcStructLayout) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GcLayout
impl RefUnwindSafe for GcLayout
impl Send for GcLayout
impl Sync for GcLayout
impl Unpin for GcLayout
impl UnwindSafe for GcLayout
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