pub struct ConstructOptions<'a> { /* private fields */ }👎Deprecating in a future version:
use JsFunction::bind() instead
Expand description
A builder for making a JavaScript constructor call like new Array(16).
The builder methods make it convenient to assemble the call from parts:
let obj = url
.construct_with(&cx)
.arg(cx.string("https://neon-bindings.com"))
.apply(&mut cx)?;Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for ConstructOptions<'a>
impl<'a> !Sync for ConstructOptions<'a>
impl<'a> Freeze for ConstructOptions<'a>
impl<'a> RefUnwindSafe for ConstructOptions<'a>
impl<'a> Unpin for ConstructOptions<'a>
impl<'a> UnsafeUnpin for ConstructOptions<'a>
impl<'a> UnwindSafe for ConstructOptions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more