[−][src]Enum liblet::TokenizerError
Errors resulting from tokenizing strings.
When parsing custom strings, invalid or bad formatted strings can generate tokenizer errors, according to which representation is expected.
Variants
Error for productions which doesn't have a left hand side
ProductionNoRhs(String)
Error for productions which doesn't have a right hand side
ProductionNoSeparator(String)
Error for productions which doesn't have the production separator (see Production module for further details)
ProductionMultipleOneLine(usize)
Error for having multiple productions on the same row/line
ProductionMultiple(String)
Error for having multiple productions when expecting only one in the whole given string
ProductionEmpty(String)
Error for having a given string not containing any production but at least one was expected (see Production documentation for further details)
TransitionNoTo(String)
Error for having no "to" part in the transition
TransitionNoLabel(String)
Error for having no "label" part in the transition
TransitionMultipleOneLine(usize)
Error for having no "from" part in the transition
TransitionMultiple(String)
Error for having too many transitions but expected one in the whole given string
TransitionEmpty(String)
Error for having a given string not containing any transition but at least one was expected (see Transition documentation for further details)
Trait Implementations
impl Clone for TokenizerError
[src]
fn clone(&self) -> TokenizerError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TokenizerError
[src]
impl Display for TokenizerError
[src]
impl Eq for TokenizerError
[src]
impl Error for TokenizerError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<TokenizerError> for TransitionError
[src]
fn from(e: TokenizerError) -> Self
[src]
impl From<TokenizerError> for ProductionError
[src]
fn from(e: TokenizerError) -> Self
[src]
impl Hash for TokenizerError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TokenizerError> for TokenizerError
[src]
fn eq(&self, other: &TokenizerError) -> bool
[src]
fn ne(&self, other: &TokenizerError) -> bool
[src]
impl StructuralEq for TokenizerError
[src]
impl StructuralPartialEq for TokenizerError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenizerError
impl Send for TokenizerError
impl Sync for TokenizerError
impl Unpin for TokenizerError
impl UnwindSafe for TokenizerError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,