pub enum FileLookup {
Disk,
FileName,
Folder,
}Expand description
Where a FileIcon gets its icon. From disk, the platform reads the
file or folder for its own icon; by name, nothing is read, as file
managers show files that aren’t on disk (a download, an archive’s
contents, a file only in an old revision).
Variants§
Disk
The file or folder at the path: an app’s own icon, a folder’s custom one, a document’s by its type.
FileName
A file of the type the path’s name says (its extension, or the
whole name where the platform knows one, Makefile).
Folder
A plain folder.
Trait Implementations§
Source§impl Clone for FileLookup
impl Clone for FileLookup
impl Copy for FileLookup
Source§impl Debug for FileLookup
impl Debug for FileLookup
Source§impl Default for FileLookup
impl Default for FileLookup
impl Eq for FileLookup
Source§impl Hash for FileLookup
impl Hash for FileLookup
Source§impl IntoValue<FileLookup> for FileLookup
impl IntoValue<FileLookup> for FileLookup
fn into_value(self) -> Value<FileLookup>
Source§impl PartialEq for FileLookup
impl PartialEq for FileLookup
impl StructuralPartialEq for FileLookup
Auto Trait Implementations§
impl Freeze for FileLookup
impl RefUnwindSafe for FileLookup
impl Send for FileLookup
impl Sync for FileLookup
impl Unpin for FileLookup
impl UnsafeUnpin for FileLookup
impl UnwindSafe for FileLookup
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