Trait embedded_text::rendering::StateFactory
source · pub trait StateFactory {
type PixelIteratorState;
// Required method
fn create_state(&self) -> Self::PixelIteratorState;
}Expand description
This trait is used to associate a state type to a horizontal alignment option.
Required Associated Types§
sourcetype PixelIteratorState
type PixelIteratorState
The type of the state variable used for rendering.
Required Methods§
sourcefn create_state(&self) -> Self::PixelIteratorState
fn create_state(&self) -> Self::PixelIteratorState
Creates a new state variable.