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

pub trait SpaceConfig: Copy + Default {
    type Font: Font;
    pub fn peek_next_width(&self, n: u32) -> u32;
pub 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

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

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

pub 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...