pub struct FragmentationStats { /* private fields */ }Implementations§
Source§impl FragmentationStats
impl FragmentationStats
pub fn piece_count(self) -> usize
pub fn total_bytes(self) -> usize
pub fn smallest_piece_bytes(self) -> usize
pub fn largest_piece_bytes(self) -> usize
pub fn small_piece_threshold_bytes(self) -> usize
pub fn small_piece_count(self) -> usize
pub fn small_piece_bytes(self) -> usize
pub fn average_piece_bytes(self) -> f64
pub fn fragmentation_ratio(self) -> f64
Trait Implementations§
Source§impl Clone for FragmentationStats
impl Clone for FragmentationStats
Source§fn clone(&self) -> FragmentationStats
fn clone(&self) -> FragmentationStats
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 FragmentationStats
impl Debug for FragmentationStats
Source§impl Default for FragmentationStats
impl Default for FragmentationStats
Source§fn default() -> FragmentationStats
fn default() -> FragmentationStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for FragmentationStats
impl PartialEq for FragmentationStats
impl Copy for FragmentationStats
impl Eq for FragmentationStats
impl StructuralPartialEq for FragmentationStats
Auto Trait Implementations§
impl Freeze for FragmentationStats
impl RefUnwindSafe for FragmentationStats
impl Send for FragmentationStats
impl Sync for FragmentationStats
impl Unpin for FragmentationStats
impl UnsafeUnpin for FragmentationStats
impl UnwindSafe for FragmentationStats
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