Border

Trait Border 

Source
pub trait Border {
    // Required methods
    fn border_at(
        &self,
        width: usize,
        height: usize,
    ) -> impl Fn(usize, usize) -> CharacterPixel;
    fn width_top(&self) -> usize;
    fn width_left(&self) -> usize;
    fn width_bottom(&self) -> usize;
    fn width_right(&self) -> usize;
}

Required Methods§

Source

fn border_at( &self, width: usize, height: usize, ) -> impl Fn(usize, usize) -> CharacterPixel

Source

fn width_top(&self) -> usize

Source

fn width_left(&self) -> usize

Source

fn width_bottom(&self) -> usize

Source

fn width_right(&self) -> usize

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§