pub struct WangColor {
pub name: String,
pub color: Color,
pub tile: Option<TileId>,
pub probability: f32,
pub properties: Properties,
}Expand description
Stores the data of the Wang color.
Fields§
§name: StringThe name of this color.
color: Color§tile: Option<TileId>The tile ID of the tile representing this color.
probability: f32The relative probability that this color is chosen over others in case of multiple options. (defaults to 0)
properties: PropertiesThe custom properties of this color.
Implementations§
Trait Implementations§
impl StructuralPartialEq for WangColor
Auto Trait Implementations§
impl Freeze for WangColor
impl RefUnwindSafe for WangColor
impl Send for WangColor
impl Sync for WangColor
impl Unpin for WangColor
impl UnwindSafe for WangColor
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