pub trait Pad<Value: Width, PadBlock: Display> {
// Required method
fn fmt(
&self,
formatter: &mut Formatter<'_>,
value: &Value,
pad_block: &PadBlock,
pad_width: usize,
) -> Result<(), Error>;
}Expand description
Pad a value knowing the number of blocks.
Values that implement this trait are to be passed
to pad field of PaddedValue
or PaddedColumn.