Struct SizeFormatter

struct SizeFormatter<T: ToF64 + Unsigned, O: AsRef<crate::FormatSizeOptions>> { ... }

Implementations

impl<V: ToF64 + Unsigned, O: AsRef<crate::FormatSizeOptions>> SizeFormatter<V, O>

fn new(value: V, options: O) -> Self

impl<T> Any for SizeFormatter<T, O>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SizeFormatter<T, O>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SizeFormatter<T, O>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for SizeFormatter<T, O>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for SizeFormatter<T, O>

fn to_string(self: &Self) -> String

impl<T, O> Freeze for SizeFormatter<T, O>

impl<T, O> RefUnwindSafe for SizeFormatter<T, O>

impl<T, O> Send for SizeFormatter<T, O>

impl<T, O> Sync for SizeFormatter<T, O>

impl<T, O> Unpin for SizeFormatter<T, O>

impl<T, O> UnsafeUnpin for SizeFormatter<T, O>

impl<T, O> UnwindSafe for SizeFormatter<T, O>

impl<T, U> Into for SizeFormatter<T, O>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for SizeFormatter<T, O>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SizeFormatter<T, O>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: ToF64 + Unsigned + Copy, O: AsRef<crate::FormatSizeOptions> + Copy> Display for SizeFormatter<T, O>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result