pub enum BondValidationError {
EmptyEndpointLabel,
EmptyParticipantLabel,
EmptyDescriptor,
EmptyAngleLabel,
EmptyLengthUnit,
NonFiniteBondLength,
NonPositiveBondLength,
ZeroFractionalBondOrderNumerator,
ZeroFractionalBondOrderDenominator,
}Expand description
Errors returned when constructing bond values.
Variants§
EmptyEndpointLabel
A bond endpoint label is empty.
EmptyParticipantLabel
A bond participant label is empty.
EmptyDescriptor
A bond descriptor is empty.
EmptyAngleLabel
A bond angle label or reference is empty.
EmptyLengthUnit
A bond length unit is empty.
NonFiniteBondLength
A bond length value is not finite.
NonPositiveBondLength
A bond length value is zero or negative.
ZeroFractionalBondOrderNumerator
A fractional bond order numerator is zero.
ZeroFractionalBondOrderDenominator
A fractional bond order denominator is zero.
Trait Implementations§
Source§impl Clone for BondValidationError
impl Clone for BondValidationError
Source§fn clone(&self) -> BondValidationError
fn clone(&self) -> BondValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BondValidationError
impl Debug for BondValidationError
Source§impl Display for BondValidationError
impl Display for BondValidationError
Source§impl Error for BondValidationError
impl Error for BondValidationError
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 PartialEq for BondValidationError
impl PartialEq for BondValidationError
Source§fn eq(&self, other: &BondValidationError) -> bool
fn eq(&self, other: &BondValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BondValidationError
impl StructuralPartialEq for BondValidationError
Auto Trait Implementations§
impl Freeze for BondValidationError
impl RefUnwindSafe for BondValidationError
impl Send for BondValidationError
impl Sync for BondValidationError
impl Unpin for BondValidationError
impl UnsafeUnpin for BondValidationError
impl UnwindSafe for BondValidationError
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