Trait Size

Source
pub trait Size:
    Debug
    + Default
    + Clone
    + Copy
    + PartialEq
    + Eq
    + PartialOrd
    + Ord
    + Add<Output = Self>
    + AddAssign
    + Sum {
    type Inner: From<Self> + Into<Self> + Mul<Self, Output = Self>;
    type DisplayFormat: Copy;
    type DisplayOutput: Display;

    // Required method
    fn display(self, input: Self::DisplayFormat) -> Self::DisplayOutput;
}
Expand description

Types whose values can be used as disk usage statistic.

Required Associated Types§

Source

type Inner: From<Self> + Into<Self> + Mul<Self, Output = Self>

Underlying type

Source

type DisplayFormat: Copy

Format to be used to display the value.

Source

type DisplayOutput: Display

Return type of display.

Required Methods§

Source

fn display(self, input: Self::DisplayFormat) -> Self::DisplayOutput

Display the disk usage in a measurement system.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§