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§
source§impl Ord for Options
impl Ord for Options
source§impl PartialEq<Options> for Options
impl PartialEq<Options> for Options
source§impl PartialOrd<Options> for Options
impl PartialOrd<Options> for Options
1.0.0 · source§fn 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