Struct v8::PrimitiveArray
source · #[repr(C)]pub struct PrimitiveArray(/* private fields */);
Expand description
An array to hold Primitive values. This is used by the embedder to pass host defined options to the ScriptOptions during compilation.
This is passed back to the embedder as part of HostImportModuleDynamicallyCallback for module loading.
Implementations§
source§impl PrimitiveArray
impl PrimitiveArray
pub fn new<'s>( scope: &mut HandleScope<'s>, length: usize ) -> Local<'s, PrimitiveArray>
pub fn length(&self) -> usize
pub fn set( &self, scope: &mut HandleScope<'_>, index: usize, item: Local<'_, Primitive> )
pub fn get<'s>( &self, scope: &mut HandleScope<'s>, index: usize ) -> Local<'s, Primitive>
Methods from Deref<Target = Data>§
sourcepub fn is_big_int(&self) -> bool
pub fn is_big_int(&self) -> bool
Returns true if this data is a BigInt
.
sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this data is a Boolean
.
sourcepub fn is_context(&self) -> bool
pub fn is_context(&self) -> bool
Returns true if this data is a Context
.
sourcepub fn is_fixed_array(&self) -> bool
pub fn is_fixed_array(&self) -> bool
Returns true if this data is a FixedArray
.
sourcepub fn is_function_template(&self) -> bool
pub fn is_function_template(&self) -> bool
Returns true if this data is a FunctionTemplate
.
sourcepub fn is_module_request(&self) -> bool
pub fn is_module_request(&self) -> bool
Returns true if this data is a ModuleRequest
.
sourcepub fn is_object_template(&self) -> bool
pub fn is_object_template(&self) -> bool
Returns true if this data is a ObjectTemplate
.
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Returns true if this data is a Primitive
.
sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if this data is a Private
.
Trait Implementations§
source§impl Debug for PrimitiveArray
impl Debug for PrimitiveArray
source§impl Deref for PrimitiveArray
impl Deref for PrimitiveArray
source§impl<'s> PartialEq<Data> for PrimitiveArray
impl<'s> PartialEq<Data> for PrimitiveArray
source§impl<'s> PartialEq<PrimitiveArray> for Data
impl<'s> PartialEq<PrimitiveArray> for Data
source§fn eq(&self, other: &PrimitiveArray) -> bool
fn eq(&self, other: &PrimitiveArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq for PrimitiveArray
impl<'s> PartialEq for PrimitiveArray
source§fn eq(&self, other: &PrimitiveArray) -> bool
fn eq(&self, other: &PrimitiveArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PrimitiveArray
Auto Trait Implementations§
impl Freeze for PrimitiveArray
impl RefUnwindSafe for PrimitiveArray
impl Send for PrimitiveArray
impl Sync for PrimitiveArray
impl Unpin for PrimitiveArray
impl UnwindSafe for PrimitiveArray
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