pub enum AnyRef {}
Expand description
Support for anyref
disabled at compile time because the gc
cargo feature
was not enabled.
Implementations§
source§impl AnyRef
impl AnyRef
pub unsafe fn from_raw( _store: impl AsContextMut, raw: u32, ) -> Option<Rooted<Self>>
pub unsafe fn to_raw(&self, _store: impl AsContextMut) -> Result<u32>
pub fn ty(&self, _store: impl AsContext) -> Result<HeapType>
pub fn matches_ty(&self, _store: impl AsContext, _ty: &HeapType) -> Result<bool>
pub fn is_i31(&self, _store: impl AsContext) -> Result<bool>
pub fn as_i31(&self, _store: impl AsContext) -> Result<Option<I31>>
pub fn unwrap_i31(&self, _store: impl AsContext) -> Result<I31>
pub fn is_struct(&self, _store: impl AsContext) -> Result<bool>
pub fn as_struct(&self, _store: impl AsContext) -> Result<Option<StructRef>>
pub fn unwrap_struct(&self, _store: impl AsContext) -> Result<StructRef>
pub fn is_array(&self, _store: impl AsContext) -> Result<bool>
pub fn as_array(&self, _store: impl AsContext) -> Result<Option<ArrayRef>>
pub fn unwrap_array(&self, _store: impl AsContext) -> Result<ArrayRef>
Auto Trait Implementations§
impl Freeze for AnyRef
impl RefUnwindSafe for AnyRef
impl Send for AnyRef
impl Sync for AnyRef
impl Unpin for AnyRef
impl UnwindSafe for AnyRef
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more