Enum rbx_types::TerrainMaterials
source · pub enum TerrainMaterials {
Show 21 variants
Grass,
Slate,
Concrete,
Brick,
Sand,
WoodPlanks,
Rock,
Glacier,
Snow,
Sandstone,
Mud,
Basalt,
Ground,
CrackedLava,
Asphalt,
Cobblestone,
Ice,
LeafyGrass,
Salt,
Limestone,
Pavement,
}
Expand description
All materials that are represented by MaterialColors
.
Variants§
Grass
Slate
Concrete
Brick
Sand
WoodPlanks
Rock
Glacier
Snow
Sandstone
Mud
Basalt
Ground
CrackedLava
Asphalt
Cobblestone
Ice
LeafyGrass
Salt
Limestone
Pavement
Implementations§
source§impl TerrainMaterials
impl TerrainMaterials
sourcepub fn default_color(&self) -> Color3uint8
pub fn default_color(&self) -> Color3uint8
Returns the default color for the given TerrainMaterial
.
Trait Implementations§
source§impl Clone for TerrainMaterials
impl Clone for TerrainMaterials
source§fn clone(&self) -> TerrainMaterials
fn clone(&self) -> TerrainMaterials
Returns a copy of the value. Read more
1.0.0 · 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 TerrainMaterials
impl Debug for TerrainMaterials
source§impl FromStr for TerrainMaterials
impl FromStr for TerrainMaterials
source§impl Ord for TerrainMaterials
impl Ord for TerrainMaterials
source§fn cmp(&self, other: &TerrainMaterials) -> Ordering
fn cmp(&self, other: &TerrainMaterials) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TerrainMaterials
impl PartialEq for TerrainMaterials
source§fn eq(&self, other: &TerrainMaterials) -> bool
fn eq(&self, other: &TerrainMaterials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TerrainMaterials
impl PartialOrd for TerrainMaterials
source§fn partial_cmp(&self, other: &TerrainMaterials) -> Option<Ordering>
fn partial_cmp(&self, other: &TerrainMaterials) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TerrainMaterials
impl Eq for TerrainMaterials
impl StructuralEq for TerrainMaterials
impl StructuralPartialEq for TerrainMaterials
Auto Trait Implementations§
impl RefUnwindSafe for TerrainMaterials
impl Send for TerrainMaterials
impl Sync for TerrainMaterials
impl Unpin for TerrainMaterials
impl UnwindSafe for TerrainMaterials
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