mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-03 07:46:24 +00:00
Implement Arbitrary for Weekday
This commit is contained in:
parent
8b654b5f28
commit
b9241c0666
@ -11,6 +11,7 @@ use rkyv::{Archive, Deserialize, Serialize};
|
|||||||
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||||
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
#[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
|
||||||
#[cfg_attr(feature = "rkyv", derive(Archive, Deserialize, Serialize))]
|
#[cfg_attr(feature = "rkyv", derive(Archive, Deserialize, Serialize))]
|
||||||
|
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
||||||
pub enum Weekday {
|
pub enum Weekday {
|
||||||
/// Monday.
|
/// Monday.
|
||||||
Mon = 0,
|
Mon = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user