Enum TintSource
#[non_exhaustive]pub enum TintSource {
Grass,
Foliage,
DryFoliage,
Water,
Fixed(u32),
}Expand description
A face’s tint source as the game colours it (BlockColors.createDefault), for drawing a block
elsewhere ([crate::block::block_sprites]): the biome’s grass, foliage, dry foliage or water colour
where the block is, or a fixed colour (0xRRGGBB).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
§impl Clone for TintSource
impl Clone for TintSource
§fn clone(&self) -> TintSource
fn clone(&self) -> TintSource
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 moreimpl Copy for TintSource
§impl Debug for TintSource
impl Debug for TintSource
impl Eq for TintSource
§impl PartialEq for TintSource
impl PartialEq for TintSource
impl StructuralPartialEq for TintSource
Auto Trait Implementations§
impl Freeze for TintSource
impl RefUnwindSafe for TintSource
impl Send for TintSource
impl Sync for TintSource
impl Unpin for TintSource
impl UnsafeUnpin for TintSource
impl UnwindSafe for TintSource
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