pub struct Violation {
pub type_name: &'static str,
pub rule: Rule,
}Expand description
A value that breaks a typl constraint.
Fields§
§type_name: &'static strThe name of the typl type whose constraint failed.
rule: RuleThe kind of constraint that failed.
Trait Implementations§
impl Copy for Violation
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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