Enum trash::TrashItemSize
source · pub enum TrashItemSize {
Bytes(u64),
Entries(usize),
}
Expand description
Size of a TrashItem
in bytes or entries
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TrashItemSize
impl Clone for TrashItemSize
source§fn clone(&self) -> TrashItemSize
fn clone(&self) -> TrashItemSize
Returns a copy 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 TrashItemSize
impl Debug for TrashItemSize
source§impl Hash for TrashItemSize
impl Hash for TrashItemSize
source§impl Ord for TrashItemSize
impl Ord for TrashItemSize
source§fn cmp(&self, other: &TrashItemSize) -> Ordering
fn cmp(&self, other: &TrashItemSize) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TrashItemSize
impl PartialEq for TrashItemSize
source§fn eq(&self, other: &TrashItemSize) -> bool
fn eq(&self, other: &TrashItemSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TrashItemSize
impl PartialOrd for TrashItemSize
source§fn partial_cmp(&self, other: &TrashItemSize) -> Option<Ordering>
fn partial_cmp(&self, other: &TrashItemSize) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TrashItemSize
impl Eq for TrashItemSize
impl StructuralPartialEq for TrashItemSize
Auto Trait Implementations§
impl RefUnwindSafe for TrashItemSize
impl Send for TrashItemSize
impl Sync for TrashItemSize
impl Unpin for TrashItemSize
impl UnwindSafe for TrashItemSize
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