Function termimad::wrap::hard_wrap_composite [−][src]
pub fn hard_wrap_composite<'s, 'c>(
src_composite: &'c FmtComposite<'s>,
width: usize
) -> Vec<FmtComposite<'s>>
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.