Skip to main content

rjust_with

Function rjust_with 

Source
pub fn rjust_with<D: Dimension>(
    a: &StringArray<D>,
    width: usize,
    fillchar: char,
) -> FerrayResult<StringArray<D>>
Expand description

Right-justify each string in a field of the given width, padded with fillchar.

If the string is already longer than width, it is returned unchanged.

ยงErrors

Returns an error if the internal array construction fails.