pub struct BytesContentPathPredicate(/* private fields */);
Available on crate feature
assert
only.Expand description
Adapter used by IntoUtf8PathPredicate
for static byte slices.
§Example
use camino_tempfile_ext::prelude::*;
let temp = Utf8TempDir::new().unwrap();
let input_file = temp.child("foo.txt");
input_file.touch().unwrap();
// ... do something with input_file ...
input_file.assert(b""); // 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 IntoUtf8PathPredicate<BytesContentPathPredicate> for &'static [u8]
impl IntoUtf8PathPredicate<BytesContentPathPredicate> for &'static [u8]
Source§impl<const N: usize> IntoUtf8PathPredicate<BytesContentPathPredicate> for &'static [u8; N]
impl<const N: usize> IntoUtf8PathPredicate<BytesContentPathPredicate> for &'static [u8; N]
Source§impl Predicate<Utf8Path> for BytesContentPathPredicate
impl Predicate<Utf8Path> for BytesContentPathPredicate
Auto Trait Implementations§
impl Freeze for BytesContentPathPredicate
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> IntoUtf8PathPredicate<P> for Pwhere
P: Predicate<Utf8Path>,
impl<P> IntoUtf8PathPredicate<P> for Pwhere
P: Predicate<Utf8Path>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
§fn 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 more