Struct trash::TrashItemMetadata
source · pub struct TrashItemMetadata {
pub size: TrashItemSize,
}
Expand description
Metadata about a TrashItem
Fields§
§size: TrashItemSize
The size of the item, depending on whether or not it is a directory.
Trait Implementations§
source§impl Clone for TrashItemMetadata
impl Clone for TrashItemMetadata
source§fn clone(&self) -> TrashItemMetadata
fn clone(&self) -> TrashItemMetadata
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 TrashItemMetadata
impl Debug for TrashItemMetadata
source§impl Hash for TrashItemMetadata
impl Hash for TrashItemMetadata
source§impl Ord for TrashItemMetadata
impl Ord for TrashItemMetadata
source§fn cmp(&self, other: &TrashItemMetadata) -> Ordering
fn cmp(&self, other: &TrashItemMetadata) -> 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 TrashItemMetadata
impl PartialEq for TrashItemMetadata
source§fn eq(&self, other: &TrashItemMetadata) -> bool
fn eq(&self, other: &TrashItemMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TrashItemMetadata
impl PartialOrd for TrashItemMetadata
source§fn partial_cmp(&self, other: &TrashItemMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &TrashItemMetadata) -> 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 TrashItemMetadata
impl Eq for TrashItemMetadata
impl StructuralPartialEq for TrashItemMetadata
Auto Trait Implementations§
impl Freeze for TrashItemMetadata
impl RefUnwindSafe for TrashItemMetadata
impl Send for TrashItemMetadata
impl Sync for TrashItemMetadata
impl Unpin for TrashItemMetadata
impl UnwindSafe for TrashItemMetadata
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