[][src]Struct rs_tiled_json::tileset::Grid

pub struct Grid {
    pub height: u16,
    pub width: u16,
    pub orientation: GridOrientation,
}

This will define a custom grid within a tileset. I'm also not sure how this is used, but it is here in case it is needed. It has a height, width, and orientation as GridOrientation.

Fields

height: u16width: u16orientation: GridOrientation

Methods

impl Grid[src]

pub fn width(self) -> u16[src]

Get grid width

pub fn height(self) -> u16[src]

Get grid height

pub fn orientation(self) -> GridOrientation[src]

Get grid orientation as an enum tiled_json::GridOrientation that you can call to_string() on.

Trait Implementations

impl Clone for Grid[src]

impl Copy for Grid[src]

impl Debug for Grid[src]

impl<'de> Deserialize<'de> for Grid[src]

Auto Trait Implementations

impl RefUnwindSafe for Grid

impl Send for Grid

impl Sync for Grid

impl Unpin for Grid

impl UnwindSafe for Grid

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.