pub enum Strictness {
Loose,
Strict,
}Expand description
How much malformed syntax an object parse tolerates.
Variants§
Loose
Keep what parsed: a partial array, a dictionary that skipped a bad key. This is how the document’s own objects are read.
Strict
Fail the object when anything about it is malformed. The recovery scan uses this, because there a half-parsed body means the offset was wrong rather than the file being damaged.
Trait Implementations§
Source§impl Clone for Strictness
impl Clone for Strictness
Source§fn clone(&self) -> Strictness
fn clone(&self) -> Strictness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Strictness
Source§impl Debug for Strictness
impl Debug for Strictness
impl Eq for Strictness
Source§impl PartialEq for Strictness
impl PartialEq for Strictness
impl StructuralPartialEq for Strictness
Auto Trait Implementations§
impl Freeze for Strictness
impl RefUnwindSafe for Strictness
impl Send for Strictness
impl Sync for Strictness
impl Unpin for Strictness
impl UnsafeUnpin for Strictness
impl UnwindSafe for Strictness
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