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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileNamed
impl UnwindSafe for FileNamed
Blanket Implementations
Mutably borrows from an owned value. Read more