Struct assert_fs::assert::StrContentPathPredicate
source · pub struct StrContentPathPredicate(_);
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
sourceimpl Clone for StrContentPathPredicate
impl Clone for StrContentPathPredicate
sourcefn clone(&self) -> StrContentPathPredicate
fn clone(&self) -> StrContentPathPredicate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StrContentPathPredicate
impl Debug for StrContentPathPredicate
sourceimpl Display for StrContentPathPredicate
impl Display for StrContentPathPredicate
sourceimpl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String
type Predicate = StrContentPathPredicate
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
sourceimpl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str
type Predicate = StrContentPathPredicate
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
sourceimpl IntoPathPredicate<StrContentPathPredicate> for String
impl IntoPathPredicate<StrContentPathPredicate> for String
type Predicate = StrContentPathPredicate
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P> IntoPathPredicate<P> for Pwhere
P: Predicate<Path>,
impl<P> IntoPathPredicate<P> for Pwhere
P: Predicate<Path>,
type Predicate = P
type Predicate = P
The type of the predicate being returned.
sourcefn into_path(self) -> <P as IntoPathPredicate<P>>::Predicate
fn into_path(self) -> <P as IntoPathPredicate<P>>::Predicate
Convert to a predicate for testing a path.
sourceimpl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read moresourcefn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two
Predicate
results, returning the result. Read moresourcefn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
fn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
Compute the logical NOT of a
Predicate
, returning the result. Read more