pub enum FileCategory {
Code,
Image,
Video,
Audio,
Archive,
Document,
Database,
Executable,
Font,
Config,
Data,
Other,
}Expand description
File type categories for color-coding the treemap.
Variants§
Implementations§
Source§impl FileCategory
impl FileCategory
Sourcepub const ALL: &[FileCategory]
pub const ALL: &[FileCategory]
All category variants, for iteration (e.g. legends).
Sourcepub fn from_path(path: &Path) -> Self
pub fn from_path(path: &Path) -> Self
Determine category from a file path (based on extension).
Trait Implementations§
Source§impl Clone for FileCategory
impl Clone for FileCategory
Source§fn clone(&self) -> FileCategory
fn clone(&self) -> FileCategory
Returns a duplicate 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 FileCategory
impl Debug for FileCategory
Source§impl Hash for FileCategory
impl Hash for FileCategory
Source§impl PartialEq for FileCategory
impl PartialEq for FileCategory
Source§impl Serialize for FileCategory
Serialize FileCategory as its color string for ECharts.
impl Serialize for FileCategory
Serialize FileCategory as its color string for ECharts.
impl Copy for FileCategory
impl Eq for FileCategory
impl StructuralPartialEq for FileCategory
Auto Trait Implementations§
impl Freeze for FileCategory
impl RefUnwindSafe for FileCategory
impl Send for FileCategory
impl Sync for FileCategory
impl Unpin for FileCategory
impl UnsafeUnpin for FileCategory
impl UnwindSafe for FileCategory
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