[][src]Struct rusty_v8_m::ScriptOrModule

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

A container type that holds relevant metadata for module loading.

This is passed back to the embedder as part of HostImportModuleDynamicallyCallback for module loading.

Implementations

impl ScriptOrModule[src]

pub fn get_resource_name(&self) -> Local<Value>[src]

The name that was passed by the embedder as ResourceName to the ScriptOrigin. This can be either a v8::String or v8::Undefined.

pub fn get_host_defined_options(&self) -> Local<PrimitiveArray>[src]

The options that were passed by the embedder as HostDefinedOptions to the ScriptOrigin.

Trait Implementations

impl Deref for ScriptOrModule[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.