Struct file_matcher::FolderNamed [−][src]
pub struct FolderNamed(_);
Expand description
Defines a folder with various name types. It is required that there exists exactly one folder with a given name description.
use file_matcher::FolderNamed;
// Find an exactly one folder matching cat* within tests/assets folder
FolderNamed::wildmatch("cat*")
.within("tests/assets")
.find()?;
// Check there exists a folder matching cat* within tests/assets folder
FolderNamed::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 FolderNamed
impl Send for FolderNamed
impl Sync for FolderNamed
impl Unpin for FolderNamed
impl UnwindSafe for FolderNamed
Blanket Implementations
Mutably borrows from an owned value. Read more