Skip to main content

pad_start

Function pad_start 

Source
pub fn pad_start(
    s: &Str,
    target_length: f64,
    pad: &Str,
    limits: &TenantLimits,
) -> Result<AdmittedStr>
Expand description

padStart: prepend repetitions of pad until the string reaches target_length. Copies self when already long enough or pad is empty.