Enum below_render::RenderFormat
source · [−]pub enum RenderFormat {
Precision(usize),
ReadableSize,
PageReadableSize,
SectorReadableSize,
MaxOrReadableSize,
}
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.
Trait Implementations
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
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.