#[repr(u32)]pub enum Paint {
Show 29 variants
    AColorSimilarToSlate = 3_100_495,
    ADeepCommitmentToPurple = 8_208_497,
    ADistinctiveLackOfHue = 1_315_860,
    AMannsMint = 12_377_523,
    AfterEight = 2_960_676,
    AgedMoustacheGrey = 8_289_918,
    AnExtraordinaryAbundanceOfTinge = 15_132_390,
    AustraliumGold = 15_185_211,
    ColorNo216190216 = 14_204_632,
    DarkSalmonInjustice = 15_308_410,
    DrablyOlive = 8_421_376,
    IndubitablyGreen = 7_511_618,
    MannCoOrange = 13_595_446,
    Muskelmannbraun = 10_843_461,
    NobleHattersViolet = 5_322_826,
    PeculiarlyDrabTincture = 12_955_537,
    PinkAsHell = 16_738_740,
    RadiganConagherBrown = 6_901_050,
    TheBitterTasteOfDefeatAndLime = 3_329_330,
    TheColorOfAGentlemannsBusinessPants = 15_787_660,
    YeOldeRusticColour = 8_154_199,
    ZepheniahsGreed = 4_345_659,
    AnAirOfDebonair = 6_637_376,
    BalaclavasAreForever = 3_874_595,
    CreamSpirit = 12_807_213,
    OperatorsOveralls = 4_732_984,
    TeamSpirit = 12_073_019,
    TheValueOfTeamwork = 8_400_928,
    WaterloggedLabCoat = 11_049_612,
}Expand description
Paint. repr values are mapped to the corresponding color. For team paints this is the color 
for RED team.
Variants§
AColorSimilarToSlate = 3_100_495
ADeepCommitmentToPurple = 8_208_497
ADistinctiveLackOfHue = 1_315_860
AMannsMint = 12_377_523
AfterEight = 2_960_676
AgedMoustacheGrey = 8_289_918
AnExtraordinaryAbundanceOfTinge = 15_132_390
AustraliumGold = 15_185_211
ColorNo216190216 = 14_204_632
DarkSalmonInjustice = 15_308_410
DrablyOlive = 8_421_376
IndubitablyGreen = 7_511_618
MannCoOrange = 13_595_446
Muskelmannbraun = 10_843_461
NobleHattersViolet = 5_322_826
PeculiarlyDrabTincture = 12_955_537
PinkAsHell = 16_738_740
RadiganConagherBrown = 6_901_050
TheBitterTasteOfDefeatAndLime = 3_329_330
TheColorOfAGentlemannsBusinessPants = 15_787_660
YeOldeRusticColour = 8_154_199
ZepheniahsGreed = 4_345_659
AnAirOfDebonair = 6_637_376
BalaclavasAreForever = 3_874_595
CreamSpirit = 12_807_213
OperatorsOveralls = 4_732_984
TeamSpirit = 12_073_019
TheValueOfTeamwork = 8_400_928
WaterloggedLabCoat = 11_049_612
Implementations§
source§impl Paint
 
impl Paint
pub fn color(&self) -> u32
sourcepub fn from_color(color: u32) -> Option<Self>
 
pub fn from_color(color: u32) -> Option<Self>
sourcepub fn from_color_str(color: &str) -> Option<Self>
 
pub fn from_color_str(color: &str) -> Option<Self>
sourcepub fn colors(&self) -> (u32, u32)
 
pub fn colors(&self) -> (u32, u32)
Gets the colors for both teams. The RED team appears first. For non-team-color paints the color will be the same.
sourcepub fn is_team_paint(&self) -> bool
 
pub fn is_team_paint(&self) -> bool
Determines if this paint is a team-colored paint.
sourcepub fn from_defindex(defindex: u32) -> Option<Self>
 
pub fn from_defindex(defindex: u32) -> Option<Self>
Converts a defindex into its related Paint, if it exists.
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 Ord for Paint
 
impl Ord for Paint
source§impl PartialEq for Paint
 
impl PartialEq for Paint
source§impl PartialOrd for Paint
 
impl PartialOrd for Paint
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 moresource§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.
source§impl TryFromPrimitive for Paint
 
impl TryFromPrimitive for Paint
impl Copy for Paint
impl Eq for Paint
impl StructuralEq for Paint
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnwindSafe for Paint
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