[−][src]Struct humansize::file_size_opts::FileSizeOpts
Holds the options for the file_size method.
Fields
divider: KiloThe scale (binary/decimal) to divide against.
units: KiloThe unit set to display.
decimal_places: usizeThe amount of decimal places to display if the decimal part is non-zero.
decimal_zeroes: usizeThe amount of zeroes to display if the decimal part is zero.
fixed_at: FixedAtWhether to force a certain representation and if so, which one.
long_units: boolWhether to use the full suffix or its abbreveation.
space: boolWhether to place a space between value and units.
suffix: &'static strAn optional suffix which will be appended after the unit.
allow_negative: boolWhether to allow negative numbers as input. If False, negative values will return an error.
Trait Implementations
impl AsRef<FileSizeOpts> for FileSizeOpts[src]
fn as_ref(&self) -> &FileSizeOpts[src]
impl Debug for FileSizeOpts[src]
Auto Trait Implementations
impl RefUnwindSafe for FileSizeOpts
impl Send for FileSizeOpts
impl Sync for FileSizeOpts
impl Unpin for FileSizeOpts
impl UnwindSafe for FileSizeOpts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,