#[repr(u32)]
pub enum Paint {
Show 29 variants
AColorSimilarToSlate,
ADeepCommitmentToPurple,
ADistinctiveLackOfHue,
AMannsMint,
AfterEight,
AgedMoustacheGrey,
AnExtraordinaryAbundanceOfTinge,
AustraliumGold,
ColorNo216190216,
DarkSalmonInjustice,
DrablyOlive,
IndubitablyGreen,
MannCoOrange,
Muskelmannbraun,
NobleHattersViolet,
PeculiarlyDrabTincture,
PinkAsHell,
RadiganConagherBrown,
TheBitterTasteOfDefeatAndLime,
TheColorOfAGentlemannsBusinessPants,
YeOldeRusticColour,
ZepheniahsGreed,
AnAirOfDebonair,
BalaclavasAreForever,
CreamSpirit,
OperatorsOveralls,
TeamSpirit,
TheValueOfTeamwork,
WaterloggedLabCoat,
}
Variants§
AColorSimilarToSlate
ADeepCommitmentToPurple
ADistinctiveLackOfHue
AMannsMint
AfterEight
AgedMoustacheGrey
AnExtraordinaryAbundanceOfTinge
AustraliumGold
ColorNo216190216
DarkSalmonInjustice
DrablyOlive
IndubitablyGreen
MannCoOrange
Muskelmannbraun
NobleHattersViolet
PeculiarlyDrabTincture
PinkAsHell
RadiganConagherBrown
TheBitterTasteOfDefeatAndLime
TheColorOfAGentlemannsBusinessPants
YeOldeRusticColour
ZepheniahsGreed
AnAirOfDebonair
BalaclavasAreForever
CreamSpirit
OperatorsOveralls
TeamSpirit
TheValueOfTeamwork
WaterloggedLabCoat
Implementations§
source§impl Paint
impl Paint
pub fn color(&self) -> u32
pub fn from_color(color: u32) -> Option<Self>
pub fn from_color_str(color: &str) -> Option<Self>
pub fn colors(&self) -> (u32, u32)
pub fn is_team_paint(&self) -> bool
pub fn from_defindex(defindex: u32) -> Option<Self>
pub fn defindex(&self) -> u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Paint
impl<'de> Deserialize<'de> for Paint
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<Paint> for Paint
impl PartialEq<Paint> for Paint
source§impl TryFrom<u32> for Paint
impl TryFrom<u32> for Paint
§type Error = TryFromPrimitiveError<Paint>
type Error = TryFromPrimitiveError<Paint>
The type returned in the event of a conversion error.