#[non_exhaustive]pub struct TestResultOptions { /* private fields */ }Expand description
Presentation and expectation options for crate::ResultFactory.
Implementations§
Source§impl TestResultOptions
impl TestResultOptions
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates auto-colored output that expects the architecture rule to pass.
Sourcepub const fn color(self) -> ColorChoice
pub const fn color(self) -> ColorChoice
Returns the configured ANSI color policy.
Sourcepub const fn expects_to_pass(self) -> bool
pub const fn expects_to_pass(self) -> bool
Returns whether an empty violation list is expected.
Sourcepub const fn with_color(self, color: ColorChoice) -> Self
pub const fn with_color(self, color: ColorChoice) -> Self
Selects the ANSI color policy.
Sourcepub const fn with_expected_to_pass(self, expected: bool) -> Self
pub const fn with_expected_to_pass(self, expected: bool) -> Self
Controls whether the architecture rule is expected to have no violations.
Trait Implementations§
Source§impl Clone for TestResultOptions
impl Clone for TestResultOptions
Source§fn clone(&self) -> TestResultOptions
fn clone(&self) -> TestResultOptions
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 TestResultOptions
impl Debug for TestResultOptions
Source§impl Default for TestResultOptions
impl Default for TestResultOptions
Source§impl Hash for TestResultOptions
impl Hash for TestResultOptions
Source§impl PartialEq for TestResultOptions
impl PartialEq for TestResultOptions
impl Copy for TestResultOptions
impl Eq for TestResultOptions
impl StructuralPartialEq for TestResultOptions
Auto Trait Implementations§
impl Freeze for TestResultOptions
impl RefUnwindSafe for TestResultOptions
impl Send for TestResultOptions
impl Sync for TestResultOptions
impl Unpin for TestResultOptions
impl UnwindSafe for TestResultOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.