pub enum InterchangeError {
Show 17 variants
UnsupportedSchema(String),
EmptyIdentifier(&'static str),
Geometry(ValidationError),
NoComponents,
DuplicateComponent(DoseComponent),
MissingComponent(DoseComponent),
InconsistentUnits {
component: DoseComponent,
component_unit: DoseUnit,
expected: DoseUnit,
},
DoseLength {
component: DoseComponent,
expected: usize,
actual: usize,
},
InvalidDose(DoseComponent),
UncertaintyLength {
component: DoseComponent,
expected: usize,
actual: usize,
},
InvalidUncertainty(DoseComponent),
TotalLength {
expected: usize,
actual: usize,
},
InvalidTotal,
TotalUncertaintyLength {
expected: usize,
actual: usize,
},
InvalidTotalUncertainty,
InvalidReference(&'static str),
Bundle(ValidationError),
}Variants§
UnsupportedSchema(String)
EmptyIdentifier(&'static str)
Geometry(ValidationError)
NoComponents
DuplicateComponent(DoseComponent)
MissingComponent(DoseComponent)
InconsistentUnits
DoseLength
InvalidDose(DoseComponent)
UncertaintyLength
InvalidUncertainty(DoseComponent)
TotalLength
InvalidTotal
TotalUncertaintyLength
InvalidTotalUncertainty
InvalidReference(&'static str)
Bundle(ValidationError)
Trait Implementations§
Source§impl Debug for InterchangeError
impl Debug for InterchangeError
Source§impl Display for InterchangeError
impl Display for InterchangeError
Source§impl Error for InterchangeError
impl Error for InterchangeError
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()
Auto Trait Implementations§
impl Freeze for InterchangeError
impl RefUnwindSafe for InterchangeError
impl Send for InterchangeError
impl Sync for InterchangeError
impl Unpin for InterchangeError
impl UnsafeUnpin for InterchangeError
impl UnwindSafe for InterchangeError
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