pub enum EclipseKind {
Solar,
Lunar,
}Expand description
Whether an eclipse is of the Sun (Moon between Earth and Sun, at new moon) or of the Moon (Earth between Sun and Moon, at full moon).
Variants§
Solar
Solar eclipse: the Moon occults the Sun at a new moon near a node.
Lunar
Lunar eclipse: the Moon passes through Earth’s shadow at a full moon near a node.
Trait Implementations§
Source§impl Clone for EclipseKind
impl Clone for EclipseKind
Source§fn clone(&self) -> EclipseKind
fn clone(&self) -> EclipseKind
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 EclipseKind
Source§impl Debug for EclipseKind
impl Debug for EclipseKind
impl Eq for EclipseKind
Source§impl PartialEq for EclipseKind
impl PartialEq for EclipseKind
Source§fn eq(&self, other: &EclipseKind) -> bool
fn eq(&self, other: &EclipseKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EclipseKind
Auto Trait Implementations§
impl Freeze for EclipseKind
impl RefUnwindSafe for EclipseKind
impl Send for EclipseKind
impl Sync for EclipseKind
impl Unpin for EclipseKind
impl UnsafeUnpin for EclipseKind
impl UnwindSafe for EclipseKind
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