Enum nyx_space::celestia::eclipse::EclipseState [−][src]
Stores the eclipse state
Variants
Penumbra(f64)
The f64 is between ]0; 1[ and corresponds to the percentage of penumbra: the closer to 1, the more light is seen.
Trait Implementations
impl Clone for EclipseState
[src]
fn clone(&self) -> EclipseState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EclipseState
[src]
impl Debug for EclipseState
[src]
impl Display for EclipseState
[src]
impl Eq for EclipseState
[src]
impl Ord for EclipseState
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
Orders eclipse states to the greatest eclipse.
Examples
extern crate nyx_space as nyx; use nyx::celestia::eclipse::EclipseState; assert!(EclipseState::Umbra == EclipseState::Umbra); assert!(EclipseState::Visibilis == EclipseState::Visibilis); assert!(EclipseState::Penumbra(0.5) == EclipseState::Penumbra(0.5)); assert!(EclipseState::Umbra > EclipseState::Penumbra(0.1)); assert!(EclipseState::Umbra > EclipseState::Penumbra(0.9)); assert!(EclipseState::Penumbra(0.1) < EclipseState::Umbra); assert!(EclipseState::Penumbra(0.9) < EclipseState::Umbra); assert!(EclipseState::Penumbra(0.9) > EclipseState::Visibilis); assert!(EclipseState::Visibilis < EclipseState::Penumbra(0.9));
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<EclipseState> for EclipseState
[src]
fn eq(&self, other: &EclipseState) -> bool
[src]
fn ne(&self, other: &EclipseState) -> bool
[src]
impl PartialOrd<EclipseState> for EclipseState
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for EclipseState
[src]
Auto Trait Implementations
impl RefUnwindSafe for EclipseState
impl Send for EclipseState
impl Sync for EclipseState
impl Unpin for EclipseState
impl UnwindSafe for EclipseState
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,