pub struct CompileOptionsWrapper {
pub ptr: *mut ReadOnlyCompileOptions,
filename: CString,
}
Fields§
§ptr: *mut ReadOnlyCompileOptions
§filename: CString
Implementations§
Source§impl CompileOptionsWrapper
impl CompileOptionsWrapper
Sourcepub unsafe fn new(cx: *mut JSContext, filename: &str, line: u32) -> Self
pub unsafe fn new(cx: *mut JSContext, filename: &str, line: u32) -> Self
§Safety
cx
must point to a non-null, valid JSContext
.
To create an instance from safe code, use Runtime::new_compile_options
.
pub fn filename(&self) -> &str
pub fn set_introduction_type(&mut self, introduction_type: &'static CStr)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileOptionsWrapper
impl RefUnwindSafe for CompileOptionsWrapper
impl !Send for CompileOptionsWrapper
impl !Sync for CompileOptionsWrapper
impl Unpin for CompileOptionsWrapper
impl UnwindSafe for CompileOptionsWrapper
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more