pub enum ParseError<'a> {
Model(ModelError<'a>),
Doc(DocError),
}Expand description
Not actively used, combines errors from file reading and model parsing.
Variants§
Model(ModelError<'a>)
Doc(DocError)
Trait Implementations§
Source§impl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
Source§impl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
Source§impl<'a> Error for ParseError<'a>
impl<'a> Error for ParseError<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl<'a> From<DocError> for ParseError<'a>
impl<'a> From<DocError> for ParseError<'a>
Source§impl<'a> From<ModelError<'a>> for ParseError<'a>
impl<'a> From<ModelError<'a>> for ParseError<'a>
Source§fn from(value: ModelError<'a>) -> Self
fn from(value: ModelError<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ParseError<'a>
impl<'a> !Send for ParseError<'a>
impl<'a> !Sync for ParseError<'a>
impl<'a> !UnwindSafe for ParseError<'a>
impl<'a> Freeze for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnsafeUnpin for ParseError<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more