[][src]Struct liboskar::types::FileSize

pub struct FileSize { /* fields omitted */ }

This is just a wrapper around a u64 so that we can implement our own Display trait for our file sizes.

Methods

impl FileSize[src]

pub fn new(i: u64) -> FileSize[src]

pub fn add(&mut self, other: FileSize)[src]

pub fn get(self) -> u64[src]

Trait Implementations

impl Clone for FileSize[src]

impl Copy for FileSize[src]

impl Debug for FileSize[src]

impl Display for FileSize[src]

impl Eq for FileSize[src]

impl Ord for FileSize[src]

impl PartialEq<FileSize> for FileSize[src]

impl PartialOrd<FileSize> for FileSize[src]

impl StructuralEq for FileSize[src]

impl StructuralPartialEq for FileSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.