Struct quickjspp::OwnedJsArray
source · pub struct OwnedJsArray { /* private fields */ }
Implementations§
source§impl OwnedJsArray
impl OwnedJsArray
pub fn try_from_value(value: OwnedJsValue) -> Result<Self, ValueError>
pub fn length(&self) -> u64
pub fn get_index( &self, index: u32 ) -> Result<Option<OwnedJsValue>, ExecutionError>
pub fn set_index( &self, index: u32, value: OwnedJsValue ) -> Result<(), ExecutionError>
pub fn push(&self, value: OwnedJsValue) -> Result<(), ExecutionError>
pub fn raw_elements(&self) -> Vec<JSValue>
Auto Trait Implementations§
impl RefUnwindSafe for OwnedJsArray
impl !Send for OwnedJsArray
impl !Sync for OwnedJsArray
impl Unpin for OwnedJsArray
impl UnwindSafe for OwnedJsArray
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