Struct v8::ScriptOrModule
source · [−]#[repr(C)]pub struct ScriptOrModule(_);
Expand description
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
sourceimpl ScriptOrModule
impl ScriptOrModule
sourcepub fn get_resource_name(&self) -> Local<'_, Value>
pub fn get_resource_name(&self) -> Local<'_, Value>
The name that was passed by the embedder as ResourceName to the ScriptOrigin. This can be either a v8::String or v8::Undefined.
sourcepub fn host_defined_options(&self) -> Local<'_, Data>
pub fn host_defined_options(&self) -> Local<'_, Data>
The options that were passed by the embedder as HostDefinedOptions to the ScriptOrigin.
Trait Implementations
sourceimpl Debug for ScriptOrModule
impl Debug for ScriptOrModule
sourceimpl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
impl<'s> PartialEq<ScriptOrModule> for ScriptOrModule
sourcefn eq(&self, other: &ScriptOrModule) -> bool
fn eq(&self, other: &ScriptOrModule) -> bool
impl Eq for ScriptOrModule
Auto Trait Implementations
impl RefUnwindSafe for ScriptOrModule
impl Send for ScriptOrModule
impl Sync for ScriptOrModule
impl Unpin for ScriptOrModule
impl UnwindSafe for ScriptOrModule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more