Enum graphannis::errors::RelAnnisError
source · #[non_exhaustive]pub enum RelAnnisError {
Show 13 variants
DirectoryNotFound(String),
MissingColumn {
pos: usize,
name: String,
file: String,
},
UnexpectedNull {
pos: usize,
name: String,
file: String,
line: Option<u64>,
},
ToplevelCorpusNotFound,
CorpusNotFound(u32),
NodeNotFound(NodeID),
AlignedNotFound(NodeID),
LeftAlignedNotFound(NodeID),
RightAlignedNotFound(NodeID),
NoTokenForPosition(TextProperty),
NoLeftPositionForNode(NodeID),
NoRightPositionForNode(NodeID),
InvalidComponentShortName(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.
DirectoryNotFound(String)
MissingColumn
UnexpectedNull
ToplevelCorpusNotFound
CorpusNotFound(u32)
NodeNotFound(NodeID)
AlignedNotFound(NodeID)
LeftAlignedNotFound(NodeID)
RightAlignedNotFound(NodeID)
NoTokenForPosition(TextProperty)
NoLeftPositionForNode(NodeID)
NoRightPositionForNode(NodeID)
InvalidComponentShortName(String)
Trait Implementations§
source§impl Debug for RelAnnisError
impl Debug for RelAnnisError
source§impl Display for RelAnnisError
impl Display for RelAnnisError
source§impl Error for RelAnnisError
impl Error for RelAnnisError
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()
source§impl From<RelAnnisError> for GraphAnnisError
impl From<RelAnnisError> for GraphAnnisError
source§fn from(source: RelAnnisError) -> Self
fn from(source: RelAnnisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelAnnisError
impl RefUnwindSafe for RelAnnisError
impl Send for RelAnnisError
impl Sync for RelAnnisError
impl Unpin for RelAnnisError
impl UnwindSafe for RelAnnisError
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