Enum below_render::RenderFormat
source · pub enum RenderFormat {
Precision(usize),
ReadableSize,
PageReadableSize,
SectorReadableSize,
MaxOrReadableSize,
ReadableFrequency,
Duration,
MaxOrDuration,
}
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.)
Duration
Only works on int Fields. Displays duration with human readable suffixes (us, ms, s, etc.)
MaxOrDuration
Only works on int Fields. -1 displays “max” else displays duration with human readable suffixes (us, ms, s, etc.)
Trait Implementations§
source§impl Clone for RenderFormat
impl Clone for RenderFormat
source§fn clone(&self) -> RenderFormat
fn clone(&self) -> RenderFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more