pub struct Year(pub i32);
Tuple Fields
0: i32
Trait Implementations
sourceimpl TimeSequence for Year
impl TimeSequence for Year
fn _future_raw(&self, _: &NaiveDateTime) -> Box<dyn Iterator<Item = Range>>
fn _past_raw(&self, t0: &NaiveDateTime) -> Box<dyn Iterator<Item = Range>>
fn future(&self, t0: &NaiveDateTime) -> Box<dyn Iterator<Item = Range>>
fn past(&self, t0: &NaiveDateTime) -> Box<dyn Iterator<Item = Range>>
Auto Trait Implementations
impl RefUnwindSafe for Year
impl Send for Year
impl Sync for Year
impl Unpin for Year
impl UnwindSafe for Year
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more