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

pub trait SpaceConfig: Copy + Default {
    type Font: Font;
    fn peek_next_width(&self, n: u32) -> u32;
fn consume(&mut self, n: u32) -> u32; }

Retrieves size of space characters.

Associated Types

type Font: Font[src]

The font for which this space config belongs.

Loading content...

Required methods

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

Look at the size of next n spaces, without advancing.

fn consume(&mut self, n: u32) -> u32[src]

Advance the internal state

Loading content...

Implementors

impl<F> SpaceConfig for UniformSpaceConfig<F> where
    F: Font + Copy
[src]

type Font = F

impl<F: Font + Copy> SpaceConfig for JustifiedSpaceConfig<F>[src]

type Font = F

Loading content...