Enum fastobo::error::CardinalityError
source · pub enum CardinalityError {
MissingClause {
name: String,
},
DuplicateClauses {
name: String,
},
SingleClause {
name: String,
},
}
Expand description
An error for cardinality violation.
This error is highly dependent on the function that returns it: the name
field can provide more information about the specific clause that errored
to the end-user.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for CardinalityError
impl Clone for CardinalityError
source§fn clone(&self) -> CardinalityError
fn clone(&self) -> CardinalityError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CardinalityError
impl Debug for CardinalityError
source§impl Display for CardinalityError
impl Display for CardinalityError
source§impl Error for CardinalityError
impl Error for CardinalityError
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 PartialEq<CardinalityError> for CardinalityError
impl PartialEq<CardinalityError> for CardinalityError
source§fn eq(&self, other: &CardinalityError) -> bool
fn eq(&self, other: &CardinalityError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CardinalityError
impl StructuralEq for CardinalityError
impl StructuralPartialEq for CardinalityError
Auto Trait Implementations§
impl RefUnwindSafe for CardinalityError
impl Send for CardinalityError
impl Sync for CardinalityError
impl Unpin for CardinalityError
impl UnwindSafe for CardinalityError
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