[−][src]Struct assert_fs::assert::BytesContentPathPredicate
Predicate used by IntoPathPredicate
for bytes.
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(b"" as &[u8]); // uses BytesContentPathPredicate temp.close().unwrap();
Trait Implementations
impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8]
[src]
type Predicate = BytesContentPathPredicate
The type of the predicate being returned.
fn into_path(self) -> Self::Predicate
[src]
impl Debug for BytesContentPathPredicate
[src]
impl Display for BytesContentPathPredicate
[src]
impl Predicate<Path> for BytesContentPathPredicate
[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 BytesContentPathPredicate
[src]
Auto Trait Implementations
impl Send for BytesContentPathPredicate
impl Sync for BytesContentPathPredicate
impl Unpin for BytesContentPathPredicate
impl UnwindSafe for BytesContentPathPredicate
impl RefUnwindSafe for BytesContentPathPredicate
Blanket Implementations
impl<P> IntoPathPredicate<P> for P where
P: Predicate<Path>,
[src]
P: Predicate<Path>,
type Predicate = P
The type of the predicate being returned.
fn into_path(Self) -> <P as IntoPathPredicate<P>>::Predicate
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
The type returned in the event of a conversion error.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
Item: ?Sized,
P: Predicate<Item>,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
B: Predicate<Item>,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item> where
B: Predicate<Item>,
[src]
B: Predicate<Item>,
fn not(self) -> NotPredicate<Self, Item>
[src]
impl<P, Item> PredicateBoxExt<Item> for P where
P: Predicate<Item>,
[src]
P: Predicate<Item>,
fn boxed(self) -> BoxPredicate<Item> where
Self: Send + Sync + 'static,
[src]
Self: Send + Sync + 'static,
impl<P, Item> PredicateNameExt<Item> for P where
Item: ?Sized,
P: Predicate<Item>,
[src]
Item: ?Sized,
P: Predicate<Item>,
fn name(self, name: &'static str) -> NamePredicate<Self, Item>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,