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§

source

fn starting_spaces(&self) -> bool

Render spaces at the start of a line

source

fn ending_spaces(&self) -> bool

Render spaces at the end of a line

source

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

Look at the size of next n spaces, without advancing

source

fn next_space_width(&mut self) -> u32

Get the width of the next space and advance

Object Safety§

This trait is not object safe.

Implementors§