Struct neon::types::function::CallOptions [−][src]
pub struct CallOptions<'a> { /* fields omitted */ }
Expand description
A builder for making a JavaScript function call like parseInt("42")
.
The builder methods make it convenient to assemble the call from parts:
let x: Handle<JsNumber> = parse_int
.call_with(&cx)
.arg(cx.string("42"))
.apply(&mut cx)?;
Implementations
Set the value of this
for the function call.
Add an argument to the arguments list.
Replaces the arguments list with the given arguments.
Make the function call. If the function returns without throwing, the result value
is downcast to the type V
, throwing a TypeError
if the downcast fails.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for CallOptions<'a>
impl<'a> !Send for CallOptions<'a>
impl<'a> !Sync for CallOptions<'a>
impl<'a> Unpin for CallOptions<'a>
impl<'a> UnwindSafe for CallOptions<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more