pub enum ArrayRef {}
Expand description
Support for arrayref
disabled at compile time because the gc
cargo feature
was not enabled.
Implementations§
source§impl ArrayRef
impl ArrayRef
pub fn ty(&self, _store: impl AsContext) -> Result<ArrayType>
pub fn matches_ty( &self, _store: impl AsContext, _ty: &ArrayType, ) -> Result<bool>
pub fn len(&self, _store: impl AsContext) -> Result<u32>
pub fn elems<'a, T: 'a>( &self, _store: impl Into<StoreContextMut<'a, T>>, ) -> Result<impl ExactSizeIterator<Item = Val> + 'a>
pub fn get(&self, _store: impl AsContextMut, _index: usize) -> Result<Val>
pub fn set( &self, _store: impl AsContextMut, _index: usize, _value: Val, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for ArrayRef
impl RefUnwindSafe for ArrayRef
impl Send for ArrayRef
impl Sync for ArrayRef
impl Unpin for ArrayRef
impl UnwindSafe for ArrayRef
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