pub enum YearSpec {
Minimum,
Maximum,
Number(i64),
}
Expand description
A year definition field.
A year has one of the following representations in a file:
min
orminimum
, the minimum year possible, for when a rule needs to apply up until the first rule with a specific year;max
ormaximum
, the maximum year possible, for when a rule needs to apply after the last rule with a specific year;- a year number, referring to a specific year.
Variants§
Minimum
The minimum year possible: min
or minimum
.
Maximum
The maximum year possible: max
or maximum
.
Number(i64)
A specific year number.
Trait Implementations§
impl Copy for YearSpec
impl StructuralPartialEq for YearSpec
Auto Trait Implementations§
impl Freeze for YearSpec
impl RefUnwindSafe for YearSpec
impl Send for YearSpec
impl Sync for YearSpec
impl Unpin for YearSpec
impl UnwindSafe for YearSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)