pub enum ConstraintError {
Immutability(ImmutabilityViolation),
Dependency(DependencyViolation),
}Expand description
Constraint violation errors
Variants§
Immutability(ImmutabilityViolation)
Dependency(DependencyViolation)
Trait Implementations§
Source§impl Debug for ConstraintError
impl Debug for ConstraintError
Source§impl Display for ConstraintError
impl Display for ConstraintError
Source§impl Error for ConstraintError
impl Error for ConstraintError
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 From<DependencyViolation> for ConstraintError
impl From<DependencyViolation> for ConstraintError
Source§fn from(source: DependencyViolation) -> Self
fn from(source: DependencyViolation) -> Self
Converts to this type from the input type.
Source§impl From<ImmutabilityViolation> for ConstraintError
impl From<ImmutabilityViolation> for ConstraintError
Source§fn from(source: ImmutabilityViolation) -> Self
fn from(source: ImmutabilityViolation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConstraintError
impl RefUnwindSafe for ConstraintError
impl Send for ConstraintError
impl Sync for ConstraintError
impl Unpin for ConstraintError
impl UnwindSafe for ConstraintError
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