Struct wildland_corex::dfs::interface::SpaceUsage
source · pub struct SpaceUsage { /* private fields */ }
Implementations§
source§impl SpaceUsage
impl SpaceUsage
pub fn new(used_space: u64, total_space: u64) -> Self
pub fn get_used_space(&self) -> u64
pub fn get_total_space(&self) -> u64
Trait Implementations§
source§impl Clone for SpaceUsage
impl Clone for SpaceUsage
source§fn clone(&self) -> SpaceUsage
fn clone(&self) -> SpaceUsage
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 SpaceUsage
impl Debug for SpaceUsage
source§impl Display for SpaceUsage
impl Display for SpaceUsage
source§impl PartialEq<SpaceUsage> for SpaceUsage
impl PartialEq<SpaceUsage> for SpaceUsage
source§fn eq(&self, other: &SpaceUsage) -> bool
fn eq(&self, other: &SpaceUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SpaceUsage
impl StructuralEq for SpaceUsage
impl StructuralPartialEq for SpaceUsage
Auto Trait Implementations§
impl RefUnwindSafe for SpaceUsage
impl Send for SpaceUsage
impl Sync for SpaceUsage
impl Unpin for SpaceUsage
impl UnwindSafe for SpaceUsage
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.