pub struct WangTile {
pub d_flip: bool,
pub h_flip: bool,
pub v_flip: bool,
pub tile_id: u32,
pub wang_id: Vec<u8>,
}
Fields§
§d_flip: bool
Tile is flipped diagonally
h_flip: bool
Tile is flipped horizontally
v_flip: bool
Tile is flipped vertically
tile_id: u32
Local ID of tile
wang_id: Vec<u8>
Array of Wang color indexes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WangTile
impl<'de> Deserialize<'de> for WangTile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WangTile
impl StructuralPartialEq for WangTile
Auto Trait Implementations§
impl Freeze for WangTile
impl RefUnwindSafe for WangTile
impl Send for WangTile
impl Sync for WangTile
impl Unpin for WangTile
impl UnwindSafe for WangTile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more