pub enum StructRef {}
Expand description
Support for structref
disabled at compile time because the gc
cargo feature
was not enabled.
Implementations§
Source§impl StructRef
impl StructRef
pub fn ty(&self, _store: impl AsContext) -> Result<StructType, Error>
pub fn matches_ty( &self, _store: impl AsContext, _ty: &StructType, ) -> Result<bool, Error>
pub fn fields<'a, T>(
&self,
_store: impl Into<StoreContextMut<'a, T>>,
) -> Result<impl ExactSizeIterator + 'a, Error>where
T: 'a,
pub fn field( &self, _store: impl AsContextMut, _index: usize, ) -> Result<Val, Error>
pub fn set_field( &self, _store: impl AsContextMut, _index: usize, _value: Val, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for StructRef
impl RefUnwindSafe for StructRef
impl Send for StructRef
impl Sync for StructRef
impl Unpin for StructRef
impl UnwindSafe for StructRef
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