pub enum Warning {
ContainsEscapeCodes,
ContainsNonPrintableASCII,
InvalidType,
InvalidLengthMax {
length: usize,
},
InvalidLengthExact {
length: usize,
},
PreferUppercase,
}Expand description
The warnings that can happen when parsing a case-insensitive string.
Variants§
ContainsEscapeCodes
There should be no escape codes in a CiString.
ContainsNonPrintableASCII
There should only be printable ASCII bytes in a CiString.
InvalidType
The JSON value given is not a string.
InvalidLengthMax
The length of the string exceeds the specs constraint.
InvalidLengthExact
The length of the string is not equal to the specs constraint.
PreferUppercase
The casing of the string is not common practice.
Note: This is not enforced by the string types in this module, but can be used by linting code to signal that the casing of a given string is unorthodox.
Trait Implementations§
Source§impl Ord for Warning
impl Ord for Warning
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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