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

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

Offset for PixelFrame displacement in a given direction

Variants

Left(u8)
Right(u8)
Bottom(u8)
Top(u8)

Implementations

impl Offset[src]

pub fn left(offset: u8) -> Self[src]

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

Panics

If offset is greater than 8.

pub fn right(offset: u8) -> Self[src]

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

Panics

If offset is greater than 8.

pub fn bottom(offset: u8) -> Self[src]

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

Panics

If offset is greater than 8.

pub fn top(offset: u8) -> Self[src]

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

Panics

If offset is greater than 8.

Trait Implementations

impl Clone for Offset[src]

impl Copy for Offset[src]

impl Debug for Offset[src]

impl PartialEq<Offset> for Offset[src]

impl StructuralPartialEq for Offset[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.