pub struct StrContentPathPredicate(/* private fields */);
Available on crate feature
assert
only.Expand description
Adapter used by IntoUtf8PathPredicate
for str
and String
.
§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(""); // Uses StrContentPathPredicate
temp.close().unwrap();
Trait Implementations§
Source§impl Clone for StrContentPathPredicate
impl Clone for StrContentPathPredicate
Source§fn clone(&self) -> StrContentPathPredicate
fn clone(&self) -> StrContentPathPredicate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StrContentPathPredicate
impl Debug for StrContentPathPredicate
Source§impl Display for StrContentPathPredicate
impl Display for StrContentPathPredicate
Source§impl Predicate<Utf8Path> for StrContentPathPredicate
impl Predicate<Utf8Path> for StrContentPathPredicate
Auto Trait Implementations§
impl Freeze for StrContentPathPredicate
impl RefUnwindSafe for StrContentPathPredicate
impl Send for StrContentPathPredicate
impl Sync for StrContentPathPredicate
impl Unpin for StrContentPathPredicate
impl UnwindSafe for StrContentPathPredicate
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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