[][src]Struct fumen::Page

pub struct Page {
    pub piece: Option<Piece>,
    pub field: [[CellColor; 10]; 23],
    pub garbage_row: [CellColor; 10],
    pub rise: bool,
    pub mirror: bool,
    pub lock: bool,
    pub comment: Option<String>,
}

Fields

piece: Option<Piece>field: [[CellColor; 10]; 23]

y-up

garbage_row: [CellColor; 10]rise: boolmirror: boollock: boolcomment: Option<String>

Implementations

impl Page[src]

pub fn next_page(&self) -> Page[src]

Create a page from this page in the same way as fumen does.

This will apply the piece locking, line clear, rise, and mirror rules just like fumen does.

Trait Implementations

impl Clone for Page[src]

impl Debug for Page[src]

impl Default for Page[src]

impl Eq for Page[src]

impl Hash for Page[src]

impl PartialEq<Page> for Page[src]

impl StructuralEq for Page[src]

impl StructuralPartialEq for Page[src]

Auto Trait Implementations

impl RefUnwindSafe for Page

impl Send for Page

impl Sync for Page

impl Unpin for Page

impl UnwindSafe for Page

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.