pub struct ArrayOps;Expand description
Operations on array objects.
Implementations§
Source§impl ArrayOps
impl ArrayOps
Sourcepub fn set(obj: &RtObject, index: usize, value: RtObject) -> Option<RtObject>
pub fn set(obj: &RtObject, index: usize, value: RtObject) -> Option<RtObject>
Set an element by index (in-place if unique, otherwise copy).
Sourcepub fn push(obj: &RtObject, value: RtObject) -> Option<RtObject>
pub fn push(obj: &RtObject, value: RtObject) -> Option<RtObject>
Push an element onto the end of an array.
Auto Trait Implementations§
impl Freeze for ArrayOps
impl RefUnwindSafe for ArrayOps
impl Send for ArrayOps
impl Sync for ArrayOps
impl Unpin for ArrayOps
impl UnsafeUnpin for ArrayOps
impl UnwindSafe for ArrayOps
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