Struct file_matcher::FileNamed [−][src]
pub struct FileNamed(_);
Expand description
Defines a file with various name types. It is required that there exists exactly one file with a given name description.
use file_matcher::FileNamed; // Find an exactly one file matching cat* within tests/assets folder FileNamed::wildmatch("cat*") .within("tests/assets") .find()?; // Check there exists a file matching cat* within tests/assets folder FileNamed::wildmatch("cat*") .within("tests/assets") .exists()?;
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileNamed
impl UnwindSafe for FileNamed
Blanket Implementations
Mutably borrows from an owned value. Read more