pub struct CompileOptionsWrapper {
pub ptr: *mut ReadOnlyCompileOptions,
filename: CString,
}Fields§
§ptr: *mut ReadOnlyCompileOptions§filename: CStringImplementations§
Source§impl CompileOptionsWrapper
impl CompileOptionsWrapper
pub fn new(cx: &JSContext, filename: CString, line: u32) -> Self
pub fn filename(&self) -> &str
pub fn set_introduction_type(&mut self, introduction_type: &'static CStr)
pub fn set_muted_errors(&mut self, muted_errors: bool)
pub fn set_is_run_once(&mut self, is_run_once: bool)
pub fn set_no_script_rval(&mut self, no_script_rval: bool)
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