[][src]Trait qjs::Source

pub trait Source: Sized {
    type Flags;
    fn default_flags() -> Self::Flags;
fn eval(
        self,
        ctxt: &ContextRef,
        flags: Self::Flags
    ) -> Result<Local<Value>, Error>; }

Script source.

Associated Types

type Flags

Loading content...

Required methods

fn default_flags() -> Self::Flags

Default eval flags.

fn eval(
    self,
    ctxt: &ContextRef,
    flags: Self::Flags
) -> Result<Local<Value>, Error>

Evaluate a script or module source.

Loading content...

Implementations on Foreign Types

impl<'_> Source for &'_ str[src]

type Flags = Eval

impl<'_> Source for &'_ Path[src]

type Flags = Eval

impl<'_> Source for &'_ [u8][src]

type Flags = EvalBinary

Loading content...

Implementors

Loading content...