[][src]Struct lf2_parse::Pic

pub struct Pic(pub isize);

Represents the sprite number to use.

This uses an isize as a negative number indicates the sprite should be flipped.

Implementations

impl Pic[src]

pub fn abs(self) -> usize[src]

Returns the absolute value of this pic number.

pub fn facing_switch(self) -> bool[src]

Returns true if the object's facing direction should change.

Trait Implementations

impl Clone for Pic[src]

impl Copy for Pic[src]

impl Debug for Pic[src]

impl Default for Pic[src]

impl Deref for Pic[src]

type Target = isize

The resulting type after dereferencing.

impl DerefMut for Pic[src]

impl Display for Pic[src]

impl Eq for Pic[src]

impl FromStr for Pic[src]

type Err = ParseIntError

The associated error which can be returned from parsing.

impl PartialEq<Pic> for Pic[src]

impl StructuralEq for Pic[src]

impl StructuralPartialEq for Pic[src]

Auto Trait Implementations

impl RefUnwindSafe for Pic

impl Send for Pic

impl Sync for Pic

impl Unpin for Pic

impl UnwindSafe for Pic

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> ToString for T where
    T: Display + ?Sized
[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.