pub struct Dir { /* private fields */ }Expand description
representation of a directory
Implementations§
Source§impl Dir
impl Dir
pub fn new() -> Dir
pub fn load(path: &Path) -> Result<Dir>
pub fn dump(&self, path: &Path) -> Result<()>
pub fn add_file(&mut self, name: OsString, file: File) -> Result<()>
pub fn add_dir(&mut self, name: OsString, dir: Dir) -> Result<()>
pub fn entries(&self) -> Iter<'_, OsString, Entry>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
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