StaticWidget

Trait StaticWidget 

Source
pub trait StaticWidget: DynamicWidget {
    const WIDTH_CHARACTERS: usize;
    const HEIGHT_CHARACTERS: usize;
}

Required Associated Constants§

Source

const WIDTH_CHARACTERS: usize

Width of the display in characters.

Source

const HEIGHT_CHARACTERS: usize

Height of the display in characters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S: DynamicWidget, T: DynamicWidget + StaticWidget> StaticWidget for AlternativeWidget<S, T>

Source§

const WIDTH_CHARACTERS: usize = <T as StaticWidget>::WIDTH_CHARACTERS

Source§

const HEIGHT_CHARACTERS: usize = <T as StaticWidget>::HEIGHT_CHARACTERS

Source§

impl<S: DynamicWidget, T: DynamicWidget + StaticWidget> StaticWidget for OverlayWidget<S, T>

Source§

const WIDTH_CHARACTERS: usize = <T as StaticWidget>::WIDTH_CHARACTERS

Source§

const HEIGHT_CHARACTERS: usize = <T as StaticWidget>::HEIGHT_CHARACTERS

Source§

impl<S: StaticWidget, T: StaticWidget> StaticWidget for HorizontalTilingWidget<S, T>

Source§

impl<S: StaticWidget, T: StaticWidget> StaticWidget for VerticalTilingWidget<S, T>

Source§

impl<T: DynamicConsoleDisplay<S> + StaticWidget, S: Pixel> StaticWidget for DoubleBufferWidget<T, S>

Source§

const WIDTH_CHARACTERS: usize = <T as StaticWidget>::WIDTH_CHARACTERS

Source§

const HEIGHT_CHARACTERS: usize = <T as StaticWidget>::HEIGHT_CHARACTERS

Source§

impl<T: DynamicConsoleDisplay<S> + StaticWidget, S: Pixel> StaticWidget for UvWidget<T, S>

Source§

const WIDTH_CHARACTERS: usize = <T as StaticWidget>::WIDTH_CHARACTERS

Source§

const HEIGHT_CHARACTERS: usize = <T as StaticWidget>::HEIGHT_CHARACTERS

Source§

impl<T: Pixel, const WIDTH: usize, const HEIGHT: usize> StaticWidget for StaticPixelDisplay<T, WIDTH, HEIGHT>

Source§

impl<const WIDTH: usize, const HEIGHT: usize> StaticWidget for StaticCharacterDisplay<CharacterPixel, WIDTH, HEIGHT>