Trait embedded_text::rendering::line::SpaceConfig
source · pub trait SpaceConfig: Copy {
// Required methods
fn starting_spaces(&self) -> bool;
fn ending_spaces(&self) -> bool;
fn peek_next_width(&self, n: u32) -> u32;
fn next_space_width(&mut self) -> u32;
}Expand description
Retrieves size of space characters
Required Methods§
sourcefn starting_spaces(&self) -> bool
fn starting_spaces(&self) -> bool
Render spaces at the start of a line
sourcefn ending_spaces(&self) -> bool
fn ending_spaces(&self) -> bool
Render spaces at the end of a line
sourcefn peek_next_width(&self, n: u32) -> u32
fn peek_next_width(&self, n: u32) -> u32
Look at the size of next n spaces, without advancing
sourcefn next_space_width(&mut self) -> u32
fn next_space_width(&mut self) -> u32
Get the width of the next space and advance
Object Safety§
This trait is not object safe.