[][src]Struct rusty_v8::PrimitiveArray

#[repr(C)]pub struct PrimitiveArray(_);

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

impl PrimitiveArray[src]

pub fn new<'s>(
    scope: &mut HandleScope<'s>,
    length: usize
) -> Local<'s, PrimitiveArray>
[src]

pub fn length(&self) -> usize[src]

pub fn set<'s>(
    &self,
    scope: &mut HandleScope<'s>,
    index: usize,
    item: Local<Primitive>
)
[src]

pub fn get<'s>(
    &self,
    scope: &mut HandleScope<'s>,
    index: usize
) -> Local<'s, Primitive>
[src]

Trait Implementations

impl Deref for PrimitiveArray[src]

type Target = Data

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.