pub struct Array(/* private fields */);Implementations§
Source§impl Array
impl Array
pub fn id(&self) -> Option<Id>
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn get(&self, index: u64) -> Option<Value>
pub fn iter(&self) -> ArrayIter<'_>
pub fn push<V: Into<Value>>(&mut self, val: V) -> JwstCodecResult
pub fn insert<V: Into<Value>>(&mut self, idx: u64, val: V) -> JwstCodecResult
pub fn remove(&mut self, idx: u64, len: u64) -> JwstCodecResult
Trait Implementations§
impl Send for Array
impl StructuralPartialEq for Array
impl Sync for Array
Auto Trait Implementations§
impl Freeze for Array
impl !RefUnwindSafe for Array
impl Unpin for Array
impl !UnwindSafe for Array
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