Enum pomsky_syntax::error::CharStringError
source · #[non_exhaustive]
pub enum CharStringError {
Empty,
TooManyCodePoints,
}Expand description
An error that relates to a character string
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Empty string in a code point range within a character class, e.g.
[''-'z']
TooManyCodePoints
String in a code point range within a character class that contains
multiple code points, e.g. ['abc'-'z']
Trait Implementations§
source§impl Clone for CharStringError
impl Clone for CharStringError
source§fn clone(&self) -> CharStringError
fn clone(&self) -> CharStringError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CharStringError
impl Debug for CharStringError
source§impl Display for CharStringError
impl Display for CharStringError
source§impl Error for CharStringError
impl Error for CharStringError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()