Enum tui_markup::Error
source · [−]pub enum Error<'a, GE> {
Parse(ParseError<'a>),
Gen(GE),
}Expand description
Error for markup source compile pipeline.
Display this error in {} formatter will show a error message with detailed reason and location.
So usually you don’t need check variants.
Variants
Parse(ParseError<'a>)
Parsing stage failed, usually means there is invalid syntax in source string
Gen(GE)
Generating stage failed, see document of generator type for detail.
Trait Implementations
sourceimpl<'a, GE> Error for Error<'a, GE> where
Self: Debug + Display,
impl<'a, GE> Error for Error<'a, GE> where
Self: Debug + Display,
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<'a, GE> From<Error<'a>> for Error<'a, GE>
impl<'a, GE> From<Error<'a>> for Error<'a, GE>
sourcefn from(e: ParseError<'a>) -> Self
fn from(e: ParseError<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<GeneratorInfallible> for Error<'a, GeneratorInfallible>
impl<'a> From<GeneratorInfallible> for Error<'a, GeneratorInfallible>
sourcefn from(_e: GeneratorInfallible) -> Self
fn from(_e: GeneratorInfallible) -> Self
Converts to this type from the input type.
sourceimpl<'a, GE: LocatedError> LocatedError for Error<'a, GE>
impl<'a, GE: LocatedError> LocatedError for Error<'a, GE>
impl<'a, GE: Eq> Eq for Error<'a, GE>
impl<'a, GE> StructuralEq for Error<'a, GE>
impl<'a, GE> StructuralPartialEq for Error<'a, GE>
Auto Trait Implementations
impl<'a, GE> RefUnwindSafe for Error<'a, GE> where
GE: RefUnwindSafe,
impl<'a, GE> Send for Error<'a, GE> where
GE: Send,
impl<'a, GE> Sync for Error<'a, GE> where
GE: Sync,
impl<'a, GE> Unpin for Error<'a, GE> where
GE: Unpin,
impl<'a, GE> UnwindSafe for Error<'a, GE> where
GE: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more