pub trait CheckedAnyRef {
// Required methods
fn checked_i31(&self, store: impl AsContext) -> Result<I31>;
fn checked_struct(&self, store: impl AsContext) -> Result<Rooted<StructRef>>;
fn checked_array(&self, store: impl AsContext) -> Result<Rooted<ArrayRef>>;
}Required Methods§
Sourcefn checked_i31(&self, store: impl AsContext) -> Result<I31>
fn checked_i31(&self, store: impl AsContext) -> Result<I31>
§Errors
Fails when the reference is unrooted or is not an i31.
Sourcefn checked_struct(&self, store: impl AsContext) -> Result<Rooted<StructRef>>
fn checked_struct(&self, store: impl AsContext) -> Result<Rooted<StructRef>>
§Errors
Fails when the reference is unrooted or is not a struct.
Sourcefn checked_array(&self, store: impl AsContext) -> Result<Rooted<ArrayRef>>
fn checked_array(&self, store: impl AsContext) -> Result<Rooted<ArrayRef>>
§Errors
Fails when the reference is unrooted or is not an array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.