pub struct AlwaysYes;Expand description
Check which always true
Trait Implementations§
Source§impl Check for AlwaysYes
impl Check for AlwaysYes
Source§fn yes(&self) -> bool
fn yes(&self) -> bool
Performs check and returns true in case of success, false - if check
negative or failed (eg. have not enough permission to perform check).
Returned true value here is “stronger”, for example if file checked
for some content, it possible file contains it, but check returns
false if not enough permission. Because of that there is no point in
negating check, for example it is incorrect to use
not(is_dir) need to
use path_is_missing.fn into_check(self) -> Box<dyn Check>
Auto Trait Implementations§
impl Freeze for AlwaysYes
impl RefUnwindSafe for AlwaysYes
impl Send for AlwaysYes
impl Sync for AlwaysYes
impl Unpin for AlwaysYes
impl UnwindSafe for AlwaysYes
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