Struct assert_fs::assert::StrContentPathPredicate [−][src]
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
impl Clone for StrContentPathPredicate
[src]
fn clone(&self) -> StrContentPathPredicate
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StrContentPathPredicate
[src]
impl Display for StrContentPathPredicate
[src]
impl IntoPathPredicate<StrContentPathPredicate> for String
[src]
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
fn into_path(self) -> Self::Predicate
[src]
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s str
[src]
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
fn into_path(self) -> Self::Predicate
[src]
impl<'s> IntoPathPredicate<StrContentPathPredicate> for &'s String
[src]
type Predicate = StrContentPathPredicate
The type of the predicate being returned.
fn into_path(self) -> Self::Predicate
[src]
impl Predicate<Path> for StrContentPathPredicate
[src]
fn eval(&self, item: &Path) -> bool
[src]
fn find_case<'a>(&'a self, expected: bool, variable: &Path) -> Option<Case<'a>>
[src]
impl PredicateReflection for StrContentPathPredicate
[src]
Auto Trait Implementations
impl RefUnwindSafe for StrContentPathPredicate
[src]
impl Send for StrContentPathPredicate
[src]
impl Sync for StrContentPathPredicate
[src]
impl Unpin for StrContentPathPredicate
[src]
impl UnwindSafe for StrContentPathPredicate
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> IntoPathPredicate<P> for P where
P: Predicate<Path>,
[src]
P: Predicate<Path>,
type Predicate = P
The type of the predicate being returned.
pub fn into_path(Self) -> <P as IntoPathPredicate<P>>::Predicate
[src]
impl<P, Item> PredicateBooleanExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]
P: Predicate<Item>,
Item: ?Sized,
pub fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
B: Predicate<Item>,
pub fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
B: Predicate<Item>,
pub fn not(self) -> NotPredicate<Self, Item>
[src]
impl<P, Item> PredicateBoxExt<Item> for P where
P: Predicate<Item>,
[src]
P: Predicate<Item>,
pub fn boxed(self) -> BoxPredicate<Item> where
Self: Send + Sync + 'static,
[src]
Self: Send + Sync + 'static,
impl<P, Item> PredicateNameExt<Item> for P where
P: Predicate<Item>,
Item: ?Sized,
[src]
P: Predicate<Item>,
Item: ?Sized,
pub fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,