Enum below_render::RenderFormat
source · [−]pub enum RenderFormat {
Precision(usize),
ReadableSize,
PageReadableSize,
SectorReadableSize,
MaxOrReadableSize,
ReadableFrequency,
}
Expand description
Specifies how to format a Field into String
Variants
Precision(usize)
Truncates String to a certain width.
ReadableSize
Only works on numeric Fields. Format as human-readable size with suffixes (KB, MB, GB etc).
PageReadableSize
Only works on numeric Fields. Format number of 4K pages as human-readable size with suffixes (KB, MB, GB, etc).
SectorReadableSize
Only works on numeric Fields. Formats number of 512b sectors as human-readable size with suffixes (KB, MB, GB, etc).
MaxOrReadableSize
Only works on int Fields. Same as ReadableSize except when Field is -1, in which case “max” is returned.
ReadableFrequency
Frequency. Format with human-readable freq with suffixes (MHz, GHz etc.)
Trait Implementations
sourceimpl Clone for RenderFormat
impl Clone for RenderFormat
sourcefn clone(&self) -> RenderFormat
fn clone(&self) -> RenderFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for RenderFormat
impl Send for RenderFormat
impl Sync for RenderFormat
impl Unpin for RenderFormat
impl UnwindSafe for RenderFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more