pub enum EclipseType {
Solar(SolarEclipseType),
Lunar(LunarEclipseType),
}Expand description
An eclipse type tagged by kind: either a SolarEclipseType or a
LunarEclipseType.
Variants§
Solar(SolarEclipseType)
A solar eclipse and its sub-classification.
Lunar(LunarEclipseType)
A lunar eclipse and its sub-classification.
Implementations§
Source§impl EclipseType
impl EclipseType
Sourcepub fn kind(&self) -> EclipseKind
pub fn kind(&self) -> EclipseKind
Returns the EclipseKind (solar or lunar) this type belongs to.
Trait Implementations§
Source§impl Clone for EclipseType
impl Clone for EclipseType
Source§fn clone(&self) -> EclipseType
fn clone(&self) -> EclipseType
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 moreimpl Copy for EclipseType
Source§impl Debug for EclipseType
impl Debug for EclipseType
impl Eq for EclipseType
Source§impl PartialEq for EclipseType
impl PartialEq for EclipseType
impl StructuralPartialEq for EclipseType
Auto Trait Implementations§
impl Freeze for EclipseType
impl RefUnwindSafe for EclipseType
impl Send for EclipseType
impl Sync for EclipseType
impl Unpin for EclipseType
impl UnsafeUnpin for EclipseType
impl UnwindSafe for EclipseType
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