[][src]Struct matrix_display::Format

pub struct Format {
    pub cell_w: usize,
    pub cell_h: usize,
}

Format of a cell in a matrix

Decide of the cell width and the cell height. The matrix will pad its cells according to a Format.

Example: let format = matrix_display::Format::new(7,3)

Fields

cell_w: usizecell_h: usize

Methods

impl Format[src]

pub fn new(w: usize, h: usize) -> Format[src]

Trait Implementations

impl Default for Format[src]

Auto Trait Implementations

impl Send for Format

impl Sync for Format

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]