pub struct Data { /* private fields */ }
Implementations§
source§impl Data
impl Data
pub fn with_ages(self, ages: &[u64]) -> Self
pub const fn with_total_bytes(self, bytes: u64) -> Self
pub const fn with_total_files(self, files: u64) -> Self
pub fn get_accessed_bytes(&self, age: u64) -> Option<u64>
pub fn get_modified_bytes(&self, age: u64) -> Option<u64>
pub fn get_accessed_files(&self, age: u64) -> Option<u64>
pub fn get_modified_files(&self, age: u64) -> Option<u64>
pub const fn get_total_bytes(&self) -> u64
pub const fn get_total_files(&self) -> u64
pub fn get_ages(&self) -> Vec<&u64>
pub fn insert( &mut self, age: u64, accessed_bytes: u64, modified_bytes: u64, accessed_files: u64, modified_files: u64 )
Trait Implementations§
source§impl AddAssign for Data
impl AddAssign for Data
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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