Merge pull request #32 from guersam/master
Update to the latest nightly
This commit is contained in:
commit
482e854f87
|
@ -1052,7 +1052,7 @@ mod internals {
|
||||||
/// where `a` is `1` for the common year (simplifies the `Of` validation)
|
/// where `a` is `1` for the common year (simplifies the `Of` validation)
|
||||||
/// and `bbb` is a non-zero `Weekday` (mapping `Mon` to 7) of the last day in the past year
|
/// and `bbb` is a non-zero `Weekday` (mapping `Mon` to 7) of the last day in the past year
|
||||||
/// (simplifies the day of week calculation from the 1-based ordinal).
|
/// (simplifies the day of week calculation from the 1-based ordinal).
|
||||||
#[derive(PartialEq, Eq, Copy)]
|
#[derive(PartialEq, Eq, Copy, Clone)]
|
||||||
pub struct YearFlags(pub u8);
|
pub struct YearFlags(pub u8);
|
||||||
|
|
||||||
pub const A: YearFlags = YearFlags(0o15); pub const AG: YearFlags = YearFlags(0o05);
|
pub const A: YearFlags = YearFlags(0o15); pub const AG: YearFlags = YearFlags(0o05);
|
||||||
|
@ -1292,7 +1292,7 @@ mod internals {
|
||||||
///
|
///
|
||||||
/// The whole bits except for the least 3 bits are referred as `Ol` (ordinal and leap flag),
|
/// The whole bits except for the least 3 bits are referred as `Ol` (ordinal and leap flag),
|
||||||
/// which is an index to the `OL_TO_MDL` lookup table.
|
/// which is an index to the `OL_TO_MDL` lookup table.
|
||||||
#[derive(PartialEq, PartialOrd, Copy)]
|
#[derive(PartialEq, PartialOrd, Copy, Clone)]
|
||||||
pub struct Of(pub u32);
|
pub struct Of(pub u32);
|
||||||
|
|
||||||
impl Of {
|
impl Of {
|
||||||
|
@ -1393,7 +1393,7 @@ mod internals {
|
||||||
/// The whole bits except for the least 3 bits are referred as `Mdl`
|
/// The whole bits except for the least 3 bits are referred as `Mdl`
|
||||||
/// (month, day of month and leap flag),
|
/// (month, day of month and leap flag),
|
||||||
/// which is an index to the `MDL_TO_OL` lookup table.
|
/// which is an index to the `MDL_TO_OL` lookup table.
|
||||||
#[derive(PartialEq, PartialOrd, Copy)]
|
#[derive(PartialEq, PartialOrd, Copy, Clone)]
|
||||||
pub struct Mdf(pub u32);
|
pub struct Mdf(pub u32);
|
||||||
|
|
||||||
impl Mdf {
|
impl Mdf {
|
||||||
|
|
|
@ -164,7 +164,7 @@ pub trait Offset: Sized + Clone + fmt::Debug {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The time zone.
|
/// The time zone.
|
||||||
pub trait TimeZone: Sized {
|
pub trait TimeZone: Sized + Clone {
|
||||||
/// An associated offset type.
|
/// An associated offset type.
|
||||||
/// This type is used to store the actual offset in date and time types.
|
/// This type is used to store the actual offset in date and time types.
|
||||||
/// The original `TimeZone` value can be recovered via `TimeZone::from_offset`.
|
/// The original `TimeZone` value can be recovered via `TimeZone::from_offset`.
|
||||||
|
|
Loading…
Reference in New Issue