pub struct ByYear<T> {Show 18 fields
pub _2009: T,
pub _2010: T,
pub _2011: T,
pub _2012: T,
pub _2013: T,
pub _2014: T,
pub _2015: T,
pub _2016: T,
pub _2017: T,
pub _2018: T,
pub _2019: T,
pub _2020: T,
pub _2021: T,
pub _2022: T,
pub _2023: T,
pub _2024: T,
pub _2025: T,
pub _2026: T,
}Fields§
§_2009: T§_2010: T§_2011: T§_2012: T§_2013: T§_2014: T§_2015: T§_2016: T§_2017: T§_2018: T§_2019: T§_2020: T§_2021: T§_2022: T§_2023: T§_2024: T§_2025: T§_2026: TImplementations§
Source§impl ByYear<CohortName>
impl ByYear<CohortName>
pub const fn names() -> &'static ByYear<CohortName>
Source§impl<T> ByYear<T>
impl<T> ByYear<T>
pub fn new<F>(create: F) -> ByYear<T>
pub fn try_new<F, E>(create: F) -> Result<ByYear<T>, E>
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn par_iter_mut(&mut self) -> impl ParallelIterator<Item = &mut T>
pub fn mut_vec_from_timestamp(&mut self, timestamp: Timestamp) -> &mut T
pub fn get_mut(&mut self, year: Year) -> &mut T
Trait Implementations§
Source§impl<T> Serialize for ByYear<T>where
T: Serialize,
impl<T> Serialize for ByYear<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Traversable for ByYear<T>
impl<T> Traversable for ByYear<T>
fn to_tree_node(&self) -> TreeNode
fn iter_any_exportable(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
Auto Trait Implementations§
impl<T> Freeze for ByYear<T>where
T: Freeze,
impl<T> RefUnwindSafe for ByYear<T>where
T: RefUnwindSafe,
impl<T> Send for ByYear<T>where
T: Send,
impl<T> Sync for ByYear<T>where
T: Sync,
impl<T> Unpin for ByYear<T>where
T: Unpin,
impl<T> UnwindSafe for ByYear<T>where
T: UnwindSafe,
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more