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>
pub fn matches_ty( &self, _store: impl AsContext, _ty: &StructType, ) -> Result<bool>
pub fn fields<'a, T: 'a>( &self, _store: impl Into<StoreContextMut<'a, T>>, ) -> Result<impl ExactSizeIterator<Item = Val> + 'a>
pub fn field(&self, _store: impl AsContextMut, _index: usize) -> Result<Val>
pub fn set_field( &self, _store: impl AsContextMut, _index: usize, _value: Val, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for StructRef
impl RefUnwindSafe for StructRef
impl Send for StructRef
impl Sync for StructRef
impl Unpin for StructRef
impl UnsafeUnpin 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
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