Struct quickjs_runtime::quickjsruntime::NativeModuleLoaderAdapter [−][src]
Implementations
impl NativeModuleLoaderAdapter
[src]
pub fn new(loader: Box<dyn NativeModuleLoader>) -> Self
[src]
Trait Implementations
impl ModuleLoader for NativeModuleLoaderAdapter
[src]
fn normalize_path(
&self,
q_ctx: &QuickJsContext,
_ref_path: &str,
path: &str
) -> Option<String>
[src]
&self,
q_ctx: &QuickJsContext,
_ref_path: &str,
path: &str
) -> Option<String>
fn load_module(
&self,
q_ctx: &QuickJsContext,
absolute_path: &str
) -> Result<*mut JSModuleDef, EsError>
[src]
&self,
q_ctx: &QuickJsContext,
absolute_path: &str
) -> Result<*mut JSModuleDef, EsError>
fn has_module(&self, q_ctx: &QuickJsContext, absolute_path: &str) -> bool
[src]
unsafe fn init_module(
&self,
q_ctx: &QuickJsContext,
module: *mut JSModuleDef
) -> Result<(), EsError>
[src]
&self,
q_ctx: &QuickJsContext,
module: *mut JSModuleDef
) -> Result<(), EsError>
Auto Trait Implementations
impl !RefUnwindSafe for NativeModuleLoaderAdapter
impl !Send for NativeModuleLoaderAdapter
impl !Sync for NativeModuleLoaderAdapter
impl Unpin for NativeModuleLoaderAdapter
impl !UnwindSafe for NativeModuleLoaderAdapter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,