Skip to main content

ljust

Function ljust 

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

Left-justify each string in a field of the given width, padded with spaces.

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

ยงErrors

Returns an error if the internal array construction fails.