[−][src]Enum esbat::PrincipalPhase
The four principal phases of the Moon.
Variants
🌑 The Moon appears completely dark.
🌓 The Moon is half visible after the new moon and before the full moon.
🌕 The Moon is fully visible.
🌗 The Moon is half visible after the full moon and before the new moon.
Methods
impl PrincipalPhase
[src]
pub fn as_emoji(self) -> char
[src]
Returns the Unicode emoji representation of the moon phase.
assert_eq!(PrincipalPhase::FullMoon.as_emoji(), '🌕');
pub fn iter() -> Iter<'static, PrincipalPhase>
[src]
Views the four principal moon phases as an iterator.
assert_eq!(PrincipalPhase::iter().next(), Some(&PrincipalPhase::NewMoon)); assert_eq!(PrincipalPhase::iter().len(), 4);
Trait Implementations
impl Clone for PrincipalPhase
[src]
fn clone(&self) -> PrincipalPhase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrincipalPhase
[src]
impl Debug for PrincipalPhase
[src]
impl Eq for PrincipalPhase
[src]
impl From<PrincipalPhase> for Phase
[src]
fn from(phase: PrincipalPhase) -> Phase
[src]
impl Hash for PrincipalPhase
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PrincipalPhase> for PrincipalPhase
[src]
fn eq(&self, other: &PrincipalPhase) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PrincipalPhase
[src]
impl StructuralPartialEq for PrincipalPhase
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrincipalPhase
impl Send for PrincipalPhase
impl Sync for PrincipalPhase
impl Unpin for PrincipalPhase
impl UnwindSafe for PrincipalPhase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,