Struct json_syntax::parse::Options
source · [−]pub struct Options {
pub accept_truncated_surrogate_pair: bool,
pub accept_invalid_codepoints: bool,
}
Expand description
Parser options.
Fields
accept_truncated_surrogate_pair: bool
Whether or not to accept a high surrogate without its low counterpart in strings.
In such instance, the high surrogate will be replaced with the Unicode REPLACEMENT CHARACTER, U+FFFD.
accept_invalid_codepoints: bool
Whether or not to accept invalid Unicode codepoints in strings.
Invalid codepoints will be replaced with the Unicode REPLACEMENT CHARACTER, U+FFFD.
Implementations
Trait Implementations
sourceimpl Ord for Options
impl Ord for Options
sourceimpl PartialOrd<Options> for Options
impl PartialOrd<Options> for Options
sourcefn partial_cmp(&self, other: &Options) -> Option<Ordering>
fn partial_cmp(&self, other: &Options) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more