#[repr(u8)]
pub enum Month {
January,
February,
March,
April,
May,
June,
July,
August,
September,
October,
November,
December,
}
Expand description
Months of the year.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Deserialize<'a> for Month
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for Month
Available on crate feature
serde
only.source§fn deserialize<D: Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Distribution<Month> for Standard
Available on crate feature rand
only.
impl Distribution<Month> for Standard
Available on crate feature
rand
only.source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Month
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Month
Generate a random value of
T
, using rng
as the source of randomness.