[][src]Trait embedded_text::rendering::line::SpaceConfig

pub trait SpaceConfig: Copy {
    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; }

Retrieves size of space characters

Required methods

fn starting_spaces(&self) -> bool

Render spaces at the start of a line

fn ending_spaces(&self) -> bool

Render spaces at the end of a line

fn peek_next_width(&self, n: u32) -> u32

Look at the size of next n spaces, without advancing

fn next_space_width(&mut self) -> u32

Get the width of the next space and advance

Loading content...

Implementors

impl SpaceConfig for JustifiedSpaceConfig[src]

impl SpaceConfig for UniformSpaceConfig[src]

Loading content...