pub struct CompileOptions {
pub object_closure: ObjectClosure,
pub format_assertion: bool,
pub unsupported_policy: UnsupportedPolicy,
pub max_diagnostics: u32,
}Expand description
Options that govern lowering. Language-affecting choices (object_closure, format_assertion)
are resolved into node fields at build time; max_diagnostics bounds the diagnostics buffer.
Fields§
§object_closure: ObjectClosureThe default closure applied to an object with absent additional properties.
format_assertion: boolWhether format keywords are enforced as lexical DFAs.
unsupported_policy: UnsupportedPolicyThe policy for Unsupported occurrences.
max_diagnostics: u32The diagnostics buffer cap; must be at least one.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CompileOptions
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CompileOptions
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§impl Debug for CompileOptions
impl Debug for CompileOptions
Source§impl<__Context> Decode<__Context> for CompileOptions
impl<__Context> Decode<__Context> for CompileOptions
Source§impl Default for CompileOptions
impl Default for CompileOptions
Source§impl Encode for CompileOptions
impl Encode for CompileOptions
impl Eq for CompileOptions
Source§impl Hash for CompileOptions
impl Hash for CompileOptions
Source§impl PartialEq for CompileOptions
impl PartialEq for CompileOptions
impl StructuralPartialEq for CompileOptions
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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