#[repr(C)]pub struct OwningCompileOptions {
pub _base: ReadOnlyCompileOptions,
}Expand description
Compilation options, with dynamic lifetime. An instance of this type makes a copy of / holds / roots all dynamically allocated resources (principals; elements; strings) that it refers to. Its destructor frees / drops / unroots them. This is heavier than CompileOptions, below, but unlike CompileOptions, it can outlive any given stack frame.
Note that this roots any JS values it refers to - they’re live unconditionally. Thus, instances of this type can’t be owned, directly or indirectly, by a JavaScript object: if any value that this roots ever comes to refer to the object that owns this, then the whole cycle, and anything else it entrains, will never be freed.
Fields§
§_base: ReadOnlyCompileOptionsTrait Implementations§
Source§impl Debug for OwningCompileOptions
impl Debug for OwningCompileOptions
Source§impl PartialEq for OwningCompileOptions
impl PartialEq for OwningCompileOptions
impl StructuralPartialEq for OwningCompileOptions
Auto Trait Implementations§
impl Freeze for OwningCompileOptions
impl RefUnwindSafe for OwningCompileOptions
impl !Send for OwningCompileOptions
impl !Sync for OwningCompileOptions
impl Unpin for OwningCompileOptions
impl UnwindSafe for OwningCompileOptions
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
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>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes