Enum veloren_common_assets::walk::Walk
source · pub enum Walk {
File(PathBuf),
Dir {
path: PathBuf,
content: Vec<Walk>,
},
}
Expand description
Represent tree of directory, result of [generate_tree].
Note that paths are always relative to root it was generated from.
Variants§
File(PathBuf)
Represents file node, path is relative to directory root Walk was generated from.
Dir
Represents directory subtree, path is relative to directory root Walk was generated from.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Walk
impl Send for Walk
impl Sync for Walk
impl Unpin for Walk
impl UnwindSafe for Walk
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