Enum libdof::dofinitions::DofinitionError
source · pub enum DofinitionError {
FingerParseError(String),
EmptyKeyError,
Infallible(Infallible),
UnsupportedKeyboardFingeringCombo(KeyboardType, NamedFingering),
NonOverlappingShapesError(NamedFingering),
UnknownNamedFingering,
}
Expand description
Error subtype for the dofinitions
module. Can be seamlessly converted into DofError
using the ?
operator.
Variants§
FingerParseError(String)
EmptyKeyError
Infallible(Infallible)
UnsupportedKeyboardFingeringCombo(KeyboardType, NamedFingering)
NonOverlappingShapesError(NamedFingering)
UnknownNamedFingering
Trait Implementations§
source§impl Debug for DofinitionError
impl Debug for DofinitionError
source§impl Display for DofinitionError
impl Display for DofinitionError
source§impl Error for DofinitionError
impl Error for DofinitionError
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<DofinitionError> for DofError
impl From<DofinitionError> for DofError
source§fn from(value: DofinitionError) -> Self
fn from(value: DofinitionError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for DofinitionError
impl From<Infallible> for DofinitionError
source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
source§impl PartialEq for DofinitionError
impl PartialEq for DofinitionError
source§fn eq(&self, other: &DofinitionError) -> bool
fn eq(&self, other: &DofinitionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DofinitionError
Auto Trait Implementations§
impl RefUnwindSafe for DofinitionError
impl Send for DofinitionError
impl Sync for DofinitionError
impl Unpin for DofinitionError
impl UnwindSafe for DofinitionError
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