pub struct ViolationFactory;Expand description
The sole mapping from structured violation data to human-readable prose.
Implementations§
Source§impl ViolationFactory
impl ViolationFactory
Sourcepub fn from_violation(violation: &Violation) -> TestViolation
pub fn from_violation(violation: &Violation) -> TestViolation
Formats one built-in violation without applying terminal color or numbering.
Trait Implementations§
Source§impl Clone for ViolationFactory
impl Clone for ViolationFactory
Source§fn clone(&self) -> ViolationFactory
fn clone(&self) -> ViolationFactory
Returns a copy of the value. Read more
1.0.0 · 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 ViolationFactory
impl Debug for ViolationFactory
Source§impl Default for ViolationFactory
impl Default for ViolationFactory
Source§fn default() -> ViolationFactory
fn default() -> ViolationFactory
Returns the “default value” for a type. Read more
impl Copy for ViolationFactory
Auto Trait Implementations§
impl Freeze for ViolationFactory
impl RefUnwindSafe for ViolationFactory
impl Send for ViolationFactory
impl Sync for ViolationFactory
impl Unpin for ViolationFactory
impl UnwindSafe for ViolationFactory
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