pub struct WangSet {
pub name: String,
pub wang_set_type: WangSetType,
pub tile: Option<TileId>,
pub wang_colors: Vec<WangColor>,
pub wang_tiles: HashMap<TileId, WangTile>,
pub properties: Properties,
}Expand description
Raw data belonging to a WangSet.
Fields§
§name: StringThe name of the Wang set.
wang_set_type: WangSetTypeType of Wang set.
tile: Option<TileId>The tile ID of the tile representing this Wang set.
wang_colors: Vec<WangColor>The colors color that can be used to define the corner and/or edge of each Wang tile.
wang_tiles: HashMap<TileId, WangTile>All the Wang tiles present in this Wang set, indexed by their local IDs.
properties: PropertiesThe custom properties of this Wang set.
Implementations§
Trait Implementations§
impl StructuralPartialEq for WangSet
Auto Trait Implementations§
impl Freeze for WangSet
impl RefUnwindSafe for WangSet
impl Send for WangSet
impl Sync for WangSet
impl Unpin for WangSet
impl UnwindSafe for WangSet
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