Struct advent_of_code_2022::day_7::FileSystem
source · struct FileSystem {
root: Directory,
path: Vec<String>,
}
Expand description
Represent a file system with it’s contents in a tree starting at root
and the current working directory in path
Fields§
§root: Directory
§path: Vec<String>
Implementations§
source§impl FileSystem
impl FileSystem
Trait Implementations§
source§impl Clone for FileSystem
impl Clone for FileSystem
source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileSystem
impl Debug for FileSystem
source§impl PartialEq<FileSystem> for FileSystem
impl PartialEq<FileSystem> for FileSystem
source§fn eq(&self, other: &FileSystem) -> bool
fn eq(&self, other: &FileSystem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileSystem
impl StructuralEq for FileSystem
impl StructuralPartialEq for FileSystem
Auto Trait Implementations§
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnwindSafe for FileSystem
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