Struct assert_fs::assert::BytesContentPathPredicate
source · pub struct BytesContentPathPredicate(/* private fields */);
Expand description
Keep predicates
concrete Predicates out of our public API.
predicates_core::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§
source§impl Debug for BytesContentPathPredicate
impl Debug for BytesContentPathPredicate
source§impl Display for BytesContentPathPredicate
impl Display for BytesContentPathPredicate
source§impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8]
impl IntoPathPredicate<BytesContentPathPredicate> for &'static [u8]
source§impl Predicate<Path> for BytesContentPathPredicate
impl Predicate<Path> for BytesContentPathPredicate
Auto Trait Implementations§
impl RefUnwindSafe for BytesContentPathPredicate
impl Send for BytesContentPathPredicate
impl Sync for BytesContentPathPredicate
impl Unpin for BytesContentPathPredicate
impl UnwindSafe for BytesContentPathPredicate
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