pub struct FileNode {
pub name: String,
pub path: PathBuf,
pub is_dir: bool,
pub icon: String,
pub weight_str: String,
pub weight_bytes: u64,
pub children: Vec<FileNode>,
}Expand description
[POL]: Reprezentuje pojedynczy węzeł w drzewie systemu plików.
Fields§
§name: String§path: PathBuf§is_dir: bool§icon: String§weight_str: String§weight_bytes: u64§children: Vec<FileNode>Implementations§
Source§impl FileNode
impl FileNode
Sourcepub fn sort_slice(nodes: &mut [FileNode], strategy: SortStrategy)
pub fn sort_slice(nodes: &mut [FileNode], strategy: SortStrategy)
[POL]: Sortuje listę węzłów w miejscu zgodnie z wybraną strategią.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileNode
impl RefUnwindSafe for FileNode
impl Send for FileNode
impl Sync for FileNode
impl Unpin for FileNode
impl UnsafeUnpin for FileNode
impl UnwindSafe for FileNode
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