pub struct FileFragmentInfo {
pub path: String,
pub size: usize,
pub fragments: u32,
pub first_cluster: u32,
}Expand description
Information about file fragmentation.
Fields§
§path: StringFile path
size: usizeFile size in bytes
fragments: u32Number of fragments (contiguous extents)
first_cluster: u32Starting cluster of first fragment
Implementations§
Source§impl FileFragmentInfo
impl FileFragmentInfo
Sourcepub fn fragmentation_ratio(&self, cluster_size: usize) -> f64
pub fn fragmentation_ratio(&self, cluster_size: usize) -> f64
Calculate the fragmentation ratio (1.0 = not fragmented, >1.0 = fragmented).
Trait Implementations§
Source§impl Clone for FileFragmentInfo
impl Clone for FileFragmentInfo
Source§fn clone(&self) -> FileFragmentInfo
fn clone(&self) -> FileFragmentInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileFragmentInfo
impl RefUnwindSafe for FileFragmentInfo
impl Send for FileFragmentInfo
impl Sync for FileFragmentInfo
impl Unpin for FileFragmentInfo
impl UnsafeUnpin for FileFragmentInfo
impl UnwindSafe for FileFragmentInfo
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