pub struct Config { /* private fields */ }Expand description
What to check: a dialect, and any rules whose severity differs from the dialect’s default.
Implementations§
Source§impl Config
impl Config
Sourcepub const DEFAULT_MAX_DEPTH: usize = 10_000
pub const DEFAULT_MAX_DEPTH: usize = 10_000
How deep objects and arrays may nest by default: about where check-json5 1.4 stopped
(9,998 levels), so files it passed still pass, and the same as Go’s encoding/json.
Sourcepub fn max_depth(self, depth: usize) -> Self
pub fn max_depth(self, depth: usize) -> Self
Set how deep objects and arrays may nest; one level deeper is a syntax error.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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