Function termimad::wrap::hard_wrap_composite

source ·
pub fn hard_wrap_composite<'s, 'c>(
    src_composite: &'c FmtComposite<'s>,
    width: usize,
    skin: &MadSkin
) -> Result<Vec<FmtComposite<'s>>, InsufficientWidthError>
Expand description

cut the passed composite in several composites fitting the given visible width (which might be bigger or smaller than the length of the underlying string). width can’t be less than 3.