pub struct TimeOfDayCollection {
pub day: TimeOfDay,
pub night: TimeOfDay,
pub morning: TimeOfDay,
pub evening: TimeOfDay,
pub afternoon: TimeOfDay,
pub extras: Option<HashMap<String, String>>,
}Fields§
§day: TimeOfDay§night: TimeOfDay§morning: TimeOfDay§evening: TimeOfDay§afternoon: TimeOfDay§extras: Option<HashMap<String, String>>Implementations§
Source§impl TimeOfDayCollection
impl TimeOfDayCollection
pub fn is_time_of_day(&self, target: &String) -> bool
pub fn get_time_of_day(&self, target: &String) -> Option<TimeOfDay>
Trait Implementations§
Source§impl Clone for TimeOfDayCollection
impl Clone for TimeOfDayCollection
Source§fn clone(&self) -> TimeOfDayCollection
fn clone(&self) -> TimeOfDayCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeOfDayCollection
impl Debug for TimeOfDayCollection
Source§impl Default for TimeOfDayCollection
impl Default for TimeOfDayCollection
Source§impl PartialEq for TimeOfDayCollection
impl PartialEq for TimeOfDayCollection
impl StructuralPartialEq for TimeOfDayCollection
Auto Trait Implementations§
impl Freeze for TimeOfDayCollection
impl RefUnwindSafe for TimeOfDayCollection
impl Send for TimeOfDayCollection
impl Sync for TimeOfDayCollection
impl Unpin for TimeOfDayCollection
impl UnsafeUnpin for TimeOfDayCollection
impl UnwindSafe for TimeOfDayCollection
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