pub enum EclipseFilter {
All,
SolarOnly,
LunarOnly,
}Expand description
Selects which eclipse kinds a search returns.
Variants§
All
Return both solar and lunar eclipses.
SolarOnly
Return solar eclipses only.
LunarOnly
Return lunar eclipses only.
Implementations§
Source§impl EclipseFilter
impl EclipseFilter
Sourcepub fn admits(&self, kind: EclipseKind) -> bool
pub fn admits(&self, kind: EclipseKind) -> bool
Returns true if this filter admits the given EclipseKind.
Trait Implementations§
Source§impl Clone for EclipseFilter
impl Clone for EclipseFilter
Source§fn clone(&self) -> EclipseFilter
fn clone(&self) -> EclipseFilter
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 EclipseFilter
Source§impl Debug for EclipseFilter
impl Debug for EclipseFilter
impl Eq for EclipseFilter
Source§impl PartialEq for EclipseFilter
impl PartialEq for EclipseFilter
Source§fn eq(&self, other: &EclipseFilter) -> bool
fn eq(&self, other: &EclipseFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EclipseFilter
Auto Trait Implementations§
impl Freeze for EclipseFilter
impl RefUnwindSafe for EclipseFilter
impl Send for EclipseFilter
impl Sync for EclipseFilter
impl Unpin for EclipseFilter
impl UnsafeUnpin for EclipseFilter
impl UnwindSafe for EclipseFilter
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