[][src]Struct neon::context::CallContext

pub struct CallContext<'a, T: This> { /* fields omitted */ }

A view of the JS engine in the context of a function call.

The type parameter T is the type of the this-binding.

Methods

impl<'a, T: This> CallContext<'a, T>
[src]

Indicates whether the function was called via the JavaScript [[Call]] or [[Construct]] semantics.

Indicates the number of arguments that were passed to the function.

Produces the ith argument, or None if i is greater than or equal to self.len().

Produces the ith argument and casts it to the type V, or throws an exception if i is greater than or equal to self.len() or cannot be cast to V.

Produces a handle to the this-binding.

Trait Implementations

impl<'a, T: This> Context<'a> for CallContext<'a, T>
[src]

Lock the JavaScript engine, returning an RAII guard that keeps the lock active as long as the guard is alive. Read more

Convenience method for locking the JavaScript engine and borrowing a single JS value's internals. Read more

Convenience method for locking the JavaScript engine and mutably borrowing a single JS value's internals. Read more

Executes a computation in a new memory management scope. Read more

Executes a computation in a new memory management scope and computes a single result value that outlives the computation. Read more

Convenience method for creating a JsBoolean value.

Convenience method for creating a JsNumber value.

Convenience method for creating a JsString value. Read more

Convenience method for creating a JsString value. Read more

Convenience method for creating a JsNull value.

Convenience method for creating a JsUndefined value.

Convenience method for creating an empty JsObject value.

Convenience method for creating an empty JsArray value.

Convenience method for creating an empty JsArrayBuffer value.

Convenience method for creating an empty JsBuffer value.

Produces a handle to the JavaScript global object.

Throws a JS value.

Creates a direct instance of the Error class.

Creates an instance of the TypeError class.

Creates an instance of the RangeError class.

Throws a direct instance of the Error class.

Throws an instance of the TypeError class.

Throws an instance of the RangeError class.

impl<'a, T: This> UnwindSafe for CallContext<'a, T>
[src]

Auto Trait Implementations

impl<'a, T> !Send for CallContext<'a, T>

impl<'a, T> !Sync for CallContext<'a, T>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]