pub struct TerrainColors {
pub grid_size: usize,
pub textures: Vec<Texture>,
}Expand description
Square terrain colour-map collection in X-major/Z-minor order.
Fields§
§grid_size: usizeNumber of textures along each axis.
textures: Vec<Texture>Texture records in engine load order.
Trait Implementations§
Source§impl Clone for TerrainColors
impl Clone for TerrainColors
Source§fn clone(&self) -> TerrainColors
fn clone(&self) -> TerrainColors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerrainColors
impl Debug for TerrainColors
Source§impl<'de> Deserialize<'de> for TerrainColors
impl<'de> Deserialize<'de> for TerrainColors
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
Source§impl PartialEq for TerrainColors
impl PartialEq for TerrainColors
Source§impl Serialize for TerrainColors
impl Serialize for TerrainColors
impl StructuralPartialEq for TerrainColors
Auto Trait Implementations§
impl Freeze for TerrainColors
impl RefUnwindSafe for TerrainColors
impl Send for TerrainColors
impl Sync for TerrainColors
impl Unpin for TerrainColors
impl UnsafeUnpin for TerrainColors
impl UnwindSafe for TerrainColors
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