pub struct KeyedDir {
pub dir: String,
pub compare: Compare,
/* private fields */
}Expand description
One keyed directory: its path (no trailing /) and how its files’ names
give their keys.
Fields§
§dir: String§compare: CompareImplementations§
Source§impl KeyedDir
impl KeyedDir
Sourcepub fn key_of(&self, name: &str) -> Option<String>
pub fn key_of(&self, name: &str) -> Option<String>
The key of the file name (a name, not a path), as a lease writes
it; None when the name does not match or what it gives is no key.
Trait Implementations§
Auto Trait Implementations§
impl Forget for KeyedDir
impl Freeze for KeyedDir
impl Move for KeyedDir
impl RefUnwindSafe for KeyedDir
impl Send for KeyedDir
impl Sync for KeyedDir
impl Unpin for KeyedDir
impl UnsafeUnpin for KeyedDir
impl UnwindSafe for KeyedDir
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