Enum wasmtime_environ::GcLayout
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)