Struct rquickjs::FileResolver[][src]

pub struct FileResolver { /* fields omitted */ }
This is supported on crate feature loader only.

The file module resolver

This resolver can be used as the nested backing resolver in user-defined resolvers.

Implementations

impl FileResolver[src]

pub fn add_path<P>(&mut self, path: P) -> &mut FileResolver where
    P: Into<RelativePathBuf>, 
[src]

Add search path for modules

pub fn with_path<P>(self, path: P) -> FileResolver where
    P: Into<RelativePathBuf>, 
[src]

Add search path for modules

pub fn add_paths<I, P>(&mut self, paths: I) -> &mut FileResolver where
    P: Into<RelativePathBuf>,
    I: IntoIterator<Item = P>, 
[src]

Add search paths for modules

pub fn with_paths<I, P>(self, paths: I) -> FileResolver where
    P: Into<RelativePathBuf>,
    I: IntoIterator<Item = P>, 
[src]

Add search paths for modules

pub fn add_pattern<P>(&mut self, pattern: P) -> &mut FileResolver where
    P: Into<String>, 
[src]

Add module file pattern

pub fn with_pattern<P>(self, pattern: P) -> FileResolver where
    P: Into<String>, 
[src]

Add module file pattern

pub fn add_native(&mut self) -> &mut FileResolver[src]

Add support for native modules

pub fn with_native(self) -> FileResolver[src]

Add support for native modules

Trait Implementations

impl Debug for FileResolver[src]

impl Default for FileResolver[src]

impl Resolver for FileResolver[src]

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> ParallelSend for T where
    T: Send
[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.