pub struct JudgeConfig {
pub strict_null_checks: bool,
pub strict_function_types: bool,
pub exact_optional_property_types: bool,
pub no_unchecked_indexed_access: bool,
pub sound_mode: bool,
}Expand description
Configuration options for the Judge.
These correspond to TypeScript compiler options that affect type checking. Making them explicit enables proper caching and invalidation.
Fields§
§strict_null_checks: boolstrictNullChecks - whether null/undefined are separate types
strict_function_types: boolstrictFunctionTypes - contravariant function parameters
exact_optional_property_types: boolexactOptionalPropertyTypes - optional properties don’t include undefined implicitly
no_unchecked_indexed_access: boolnoUncheckedIndexedAccess - index signatures include undefined
sound_mode: boolsound_mode - prioritizes soundness (e.g. any doesn’t silence structural errors)
Trait Implementations§
Source§impl Clone for JudgeConfig
impl Clone for JudgeConfig
Source§fn clone(&self) -> JudgeConfig
fn clone(&self) -> JudgeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JudgeConfig
impl Debug for JudgeConfig
Source§impl Default for JudgeConfig
impl Default for JudgeConfig
Source§impl Hash for JudgeConfig
impl Hash for JudgeConfig
Source§impl PartialEq for JudgeConfig
impl PartialEq for JudgeConfig
impl Eq for JudgeConfig
impl StructuralPartialEq for JudgeConfig
Auto Trait Implementations§
impl Freeze for JudgeConfig
impl RefUnwindSafe for JudgeConfig
impl Send for JudgeConfig
impl Sync for JudgeConfig
impl Unpin for JudgeConfig
impl UnsafeUnpin for JudgeConfig
impl UnwindSafe for JudgeConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.