pub struct LexicalIssues {
pub escapes: bool,
pub non_printable_ascii: bool,
}Expand description
The lexical issues a RawStr may contain, discovered in a single pass by
RawStr::lexical_issues.
Fields§
§escapes: boolThe raw string contains one or more JSON escape sequences.
non_printable_ascii: boolThe decoded string contains non-printable ASCII: an ASCII control character or ASCII whitespace.
Trait Implementations§
Source§impl Clone for LexicalIssues
impl Clone for LexicalIssues
Source§fn clone(&self) -> LexicalIssues
fn clone(&self) -> LexicalIssues
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 LexicalIssues
Source§impl Debug for LexicalIssues
impl Debug for LexicalIssues
impl Eq for LexicalIssues
Source§impl PartialEq for LexicalIssues
impl PartialEq for LexicalIssues
Source§fn eq(&self, other: &LexicalIssues) -> bool
fn eq(&self, other: &LexicalIssues) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexicalIssues
Auto Trait Implementations§
impl Freeze for LexicalIssues
impl RefUnwindSafe for LexicalIssues
impl Send for LexicalIssues
impl Sync for LexicalIssues
impl Unpin for LexicalIssues
impl UnsafeUnpin for LexicalIssues
impl UnwindSafe for LexicalIssues
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.