#[non_exhaustive]#[repr(u8)]pub enum GoalRecurrence {
Off = 0,
Daily = 1,
Weekly = 2,
Monthly = 3,
Yearly = 4,
Custom = 5,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for GoalRecurrence
impl Clone for GoalRecurrence
Source§fn clone(&self) -> GoalRecurrence
fn clone(&self) -> GoalRecurrence
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 GoalRecurrence
impl Debug for GoalRecurrence
Source§impl Hash for GoalRecurrence
impl Hash for GoalRecurrence
Source§impl PartialEq for GoalRecurrence
impl PartialEq for GoalRecurrence
Source§fn eq(&self, other: &GoalRecurrence) -> bool
fn eq(&self, other: &GoalRecurrence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GoalRecurrence
impl Eq for GoalRecurrence
impl StructuralPartialEq for GoalRecurrence
Auto Trait Implementations§
impl Freeze for GoalRecurrence
impl RefUnwindSafe for GoalRecurrence
impl Send for GoalRecurrence
impl Sync for GoalRecurrence
impl Unpin for GoalRecurrence
impl UnsafeUnpin for GoalRecurrence
impl UnwindSafe for GoalRecurrence
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