pub struct Size { /* private fields */ }
Implementations§
Source§impl Size
impl Size
pub fn from_bytes(bytes: usize) -> Self
pub fn from_kilobytes(kb: f64) -> Self
pub fn from_megabytes(mb: f64) -> Self
pub fn from_gigabytes(gb: f64) -> Self
Trait Implementations§
Source§impl Ord for Size
impl Ord for Size
Source§impl PartialOrd for Size
impl PartialOrd for Size
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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