Enum icu_pattern::ParserError [−][src]
pub enum ParserError<E> where
E: Debug, { IllegalCharacter(char), InvalidPlaceholder(E), UnclosedPlaceholder, UnclosedQuotedLiteral, }
An error returned when parsing a pattern.
Examples
use icu_pattern::{Parser, ParserOptions, ParserError}; let mut parser = Parser::<usize>::new("{0", ParserOptions { allow_raw_letters: false, }); assert_eq!(Err(ParserError::UnclosedPlaceholder), parser.try_next());
Type parameters
E
: An error of the replacement type which implementsFromStr
.
Variants
IllegalCharacter(char)
Encountered an illegal character.
Placeholder hould not be parsed from the given string slice.
The pattern contains an unclosed placeholder.
The pattern contains an unclosed quoted literal.
Trait Implementations
impl<E: Debug> Debug for ParserError<E> where
E: Debug,
[src]
impl<E: Debug> Debug for ParserError<E> where
E: Debug,
[src]impl<E> Display for ParserError<E> where
E: Debug,
[src]
impl<E> Display for ParserError<E> where
E: Debug,
[src]impl<E> Error for ParserError<E> where
E: Debug,
[src]
impl<E> Error for ParserError<E> where
E: Debug,
[src]impl<E: PartialEq> PartialEq<ParserError<E>> for ParserError<E> where
E: Debug,
[src]
impl<E: PartialEq> PartialEq<ParserError<E>> for ParserError<E> where
E: Debug,
[src]fn eq(&self, other: &ParserError<E>) -> bool
[src]
fn ne(&self, other: &ParserError<E>) -> bool
[src]
impl<E> StructuralPartialEq for ParserError<E> where
E: Debug,
[src]
impl<E> StructuralPartialEq for ParserError<E> where
E: Debug,
[src]Auto Trait Implementations
impl<E> RefUnwindSafe for ParserError<E> where
E: RefUnwindSafe,
impl<E> RefUnwindSafe for ParserError<E> where
E: RefUnwindSafe,
impl<E> Send for ParserError<E> where
E: Send,
impl<E> Send for ParserError<E> where
E: Send,
impl<E> Sync for ParserError<E> where
E: Sync,
impl<E> Sync for ParserError<E> where
E: Sync,
impl<E> Unpin for ParserError<E> where
E: Unpin,
impl<E> Unpin for ParserError<E> where
E: Unpin,
impl<E> UnwindSafe for ParserError<E> where
E: UnwindSafe,
impl<E> UnwindSafe for ParserError<E> where
E: UnwindSafe,