pub struct Array<'a>(_);
Implementations
sourceimpl<'a> Array<'a>
impl<'a> Array<'a>
pub fn value(&self) -> Value<'a>
pub fn env(&self) -> Env<'a>
pub fn new(env: Env<'_>) -> Result<Array<'_>>
pub fn size(&self) -> Result<usize>
pub fn get(&self, index: usize) -> Result<Value<'a>>
pub fn set(&mut self, index: usize, value: impl Into<Value<'a>>) -> Result<()>
pub fn push(&mut self, value: impl Into<Value<'a>>) -> Result<()>
pub fn iter(&self) -> Result<ArrayIterator<'a>>
Trait Implementations
sourceimpl<'a> FromNodeAPI<'a> for Array<'a>
impl<'a> FromNodeAPI<'a> for Array<'a>
fn from_node_api(value: Value<'a>) -> Result<Self>
sourceimpl<'a> IntoNodeApi<'a> for Array<'a>
impl<'a> IntoNodeApi<'a> for Array<'a>
fn into_node_api(self, _env: Env<'a>) -> Result<Value<'a>>
impl<'a> Copy for Array<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Array<'a>
impl<'a> !Send for Array<'a>
impl<'a> !Sync for Array<'a>
impl<'a> Unpin for Array<'a>
impl<'a> UnwindSafe for Array<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more