#[repr(C)]pub struct JSRuntimeOptions {
pub version: i32,
pub malloc_functions: *const JSMallocFunctions,
pub malloc_opaque: *mut c_void,
pub random_bytes: Option<unsafe extern "C" fn(*mut c_void, *mut u8, u64) -> i32>,
pub random_opaque: *mut c_void,
}Fields§
§version: i32§malloc_functions: *const JSMallocFunctions§malloc_opaque: *mut c_void§random_bytes: Option<unsafe extern "C" fn(*mut c_void, *mut u8, u64) -> i32>§random_opaque: *mut c_voidTrait Implementations§
Source§impl Clone for JSRuntimeOptions
impl Clone for JSRuntimeOptions
Source§fn clone(&self) -> JSRuntimeOptions
fn clone(&self) -> JSRuntimeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JSRuntimeOptions
Auto Trait Implementations§
impl !Send for JSRuntimeOptions
impl !Sync for JSRuntimeOptions
impl Forget for JSRuntimeOptions
impl Freeze for JSRuntimeOptions
impl Move for JSRuntimeOptions
impl RefUnwindSafe for JSRuntimeOptions
impl Unpin for JSRuntimeOptions
impl UnsafeUnpin for JSRuntimeOptions
impl UnwindSafe for JSRuntimeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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