pub struct FileEntry {Show 17 fields
pub path: OsString,
pub full_path: PathBuf,
pub filesystem_identity: (u64, u64),
pub is_dir: bool,
pub is_executable: bool,
pub is_hidden: bool,
pub mode: u32,
pub size: u64,
pub size_incomplete: bool,
pub modified: SystemTime,
pub owner: String,
pub group: String,
pub user_id: u32,
pub group_id: u32,
pub nlink: u64,
pub git_status: Option<GitStatus>,
pub symlink: Option<Symlink>,
}Fields§
§path: OsString§full_path: PathBufAbsolute listing path, kept separate from the formatted display name.
filesystem_identity: (u64, u64)Device and inode used to recognise system folders and configured paths.
is_dir: bool§is_executable: bool§mode: u32§size: u64§size_incomplete: bool§modified: SystemTime§owner: String§group: String§user_id: u32§group_id: u32§nlink: u64§git_status: Option<GitStatus>§symlink: Option<Symlink>Implementations§
Source§impl FileEntry
impl FileEntry
pub fn get_icon_custom<'a>(&self, config: &'a IconConfig) -> &'a str
pub fn get_file_type(&self) -> FileType
pub fn display_name(&self) -> Cow<'_, str>
pub fn format_permissions(&self) -> String
Sourcepub fn permission_chars(&self) -> [char; 10]
pub fn permission_chars(&self) -> [char; 10]
The ls -l permission string as characters, without allocating.
pub fn format_size(&self) -> FormattedSize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
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