[][src]Struct fumen::Fumen

pub struct Fumen {
    pub pages: Vec<Page>,
    pub guideline: bool,
}

Fields

pages: Vec<Page>guideline: bool

Implementations

impl Fumen[src]

pub fn encode(&self) -> String[src]

Encode as a fumen data string.

pub fn decode(data: &str) -> Result<Fumen, DecodeFumenError>[src]

Decodes a fumen data string.

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

Create a new page, in the same way as creating a new page in fumen does.

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

Trait Implementations

impl Clone for Fumen[src]

impl Debug for Fumen[src]

impl Default for Fumen[src]

impl Eq for Fumen[src]

impl Hash for Fumen[src]

impl PartialEq<Fumen> for Fumen[src]

impl StructuralEq for Fumen[src]

impl StructuralPartialEq for Fumen[src]

Auto Trait Implementations

impl RefUnwindSafe for Fumen

impl Send for Fumen

impl Sync for Fumen

impl Unpin for Fumen

impl UnwindSafe for Fumen

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.