pub struct LineStyle {
pub compound_style: CompoundStyle,
pub align: Alignment,
}
Expand description
A style applicable to a type of line.
It’s made of
- the base style of the compounds
- the alignment
Fields§
§compound_style: CompoundStyle
§align: Alignment
Implementations§
source§impl LineStyle
impl LineStyle
sourcepub fn repeat_string(&self, f: &mut Formatter<'_>, s: &str, count: usize) -> Result
pub fn repeat_string(&self, f: &mut Formatter<'_>, s: &str, count: usize) -> Result
Write a string several times with the line compound style
sourcepub fn repeat_space(&self, f: &mut Formatter<'_>, count: usize) -> Result
pub fn repeat_space(&self, f: &mut Formatter<'_>, count: usize) -> Result
Write 0 or more spaces with the line’s compound style