pub struct Array<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Array<'a>
impl<'a> Array<'a>
pub fn new(ptr: NonNull<SJ_OD_array>) -> Self
pub fn count_elements(&mut self) -> Result<usize>
pub fn is_empty(&mut self) -> Result<bool>
pub fn at(&mut self, index: usize) -> Result<Value<'a>>
pub fn at_pointer(&mut self, key: &str) -> Result<Value<'a>>
pub fn reset(&mut self) -> Result<bool>
pub fn iter(&mut self) -> Result<ArrayIterator<'_>>
pub fn raw_json(&mut self) -> Result<&'a str>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Array<'a>
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§
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