Struct mozjs_sys::jsgc::ValueArray
source · pub struct ValueArray<const N: usize> {
elements: [Value; N],
}
Expand description
A fixed-size array of values, for use inside Rooted<>.
https://searchfox.org/mozilla-central/source/js/public/ValueArray.h#31
Fields§
§elements: [Value; N]
Implementations§
source§impl<const N: usize> ValueArray<N>
impl<const N: usize> ValueArray<N>
pub fn new(elements: [Value; N]) -> Self
pub fn to_handle_value_array(&self) -> HandleValueArray
pub unsafe fn get_ptr(&self) -> *const Value
pub unsafe fn get_mut_ptr(&self) -> *mut Value
Trait Implementations§
source§impl<const N: usize> GCMethods for ValueArray<N>
impl<const N: usize> GCMethods for ValueArray<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for ValueArray<N>
impl<const N: usize> Send for ValueArray<N>
impl<const N: usize> Sync for ValueArray<N>
impl<const N: usize> Unpin for ValueArray<N>
impl<const N: usize> UnwindSafe for ValueArray<N>
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