Struct assert_fs::assert::StrContentPathPredicate
source · pub struct StrContentPathPredicate(/* private fields */);
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::Predicate used by IntoPathPredicate
for str
.
Example
use assert_fs::prelude::*;
let temp = assert_fs::TempDir::new().unwrap();
let input_file = temp.child("foo.txt");
input_file.touch().unwrap();
// ... do something with input_file ...
input_file.assert(""); // Uses StrContentPathPredicate
temp.close().unwrap();
Trait Implementations§
source§impl Clone for StrContentPathPredicate
impl Clone for StrContentPathPredicate
source§fn clone(&self) -> StrContentPathPredicate
fn clone(&self) -> StrContentPathPredicate
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 StrContentPathPredicate
impl Debug for StrContentPathPredicate
source§impl Display for StrContentPathPredicate
impl Display for StrContentPathPredicate
source§impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String
source§impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str
source§impl Predicate<Path> for StrContentPathPredicate
impl Predicate<Path> for StrContentPathPredicate
Auto Trait Implementations§
impl RefUnwindSafe for StrContentPathPredicate
impl Send for StrContentPathPredicate
impl Sync for StrContentPathPredicate
impl Unpin for StrContentPathPredicate
impl UnwindSafe for StrContentPathPredicate
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<P> IntoPathPredicate<P> for P
impl<P> IntoPathPredicate<P> for P
source§impl<P, Item> PredicateBooleanExt<Item> for P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read more