Enum sensehat_screen::frame::Offset[][src]

pub enum Offset {
    Left(u8),
    Right(u8),
    Bottom(u8),
    Top(u8),
}

Offset for PixelFrame displacement in a given direction

Variants

Methods

impl Offset
[src]

Offset by offset pixels to the left of the LED Matrix.

Panics

If offset is greater than 8.

Offset by offset pixels to the right of the LED Matrix.

Panics

If offset is greater than 8.

Offset by offset pixels to the bottom of the LED Matrix.

Panics

If offset is greater than 8.

Offset by offset pixels to the top of the LED Matrix.

Panics

If offset is greater than 8.

Trait Implementations

impl Copy for Offset
[src]

impl Clone for Offset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Offset
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Offset
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Offset

impl Sync for Offset