Struct termimad::Spacing [−][src]
Fields
width: usize
align: Alignment
Implementations
impl Spacing
[src]
impl Spacing
[src]pub fn completions(
align: Alignment,
inner_width: usize,
outer_width: usize
) -> (usize, usize)
[src]
align: Alignment,
inner_width: usize,
outer_width: usize
) -> (usize, usize)
compute the number of chars to add left and write of inner_width to fill outer_width
pub fn optional_completions(
align: Alignment,
inner_width: usize,
outer_width: Option<usize>
) -> (usize, usize)
[src]
align: Alignment,
inner_width: usize,
outer_width: Option<usize>
) -> (usize, usize)
pub fn completions_for(&self, inner_width: usize) -> (usize, usize)
[src]
pub fn write_counted_str<W>(
&self,
w: &mut W,
s: &str,
str_width: usize,
style: &CompoundStyle
) -> Result<()> where
W: Write,
[src]
&self,
w: &mut W,
s: &str,
str_width: usize,
style: &CompoundStyle
) -> Result<()> where
W: Write,
pub fn write_str<W>(
&self,
w: &mut W,
s: &str,
style: &CompoundStyle
) -> Result<()> where
W: Write,
[src]
&self,
w: &mut W,
s: &str,
style: &CompoundStyle
) -> Result<()> where
W: Write,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Spacing
impl RefUnwindSafe for Spacing
impl UnwindSafe for Spacing
impl UnwindSafe for Spacing