[−][src]Struct magrathea::ElevationColor
A pairing of an elevation and a color
Fields
kind: Kind
color: Srgb<f32>
The color used for this elevation
elevation: Length<f32, Kilometers>
The elevation of this color
Implementations
impl<Kind> ElevationColor<Kind>
[src]
pub fn from_u8(
kind: Kind,
r: u8,
g: u8,
b: u8,
elevation: Length<f32, Kilometers>
) -> Self
[src]
kind: Kind,
r: u8,
g: u8,
b: u8,
elevation: Length<f32, Kilometers>
) -> Self
Constructor to take RGB byte components and an elevation
impl ElevationColor<Earthlike>
[src]
pub fn earthlike() -> SortedVec<Self>
[src]
A basic elevation color palette that kinda resembles an earthlike planet
impl ElevationColor<Sunlike>
[src]
pub fn sunlike() -> SortedVec<Self>
[src]
A basic elevation color palette that kinda resembles a star like our sun
Trait Implementations
impl<Kind: Clone> Clone for ElevationColor<Kind>
[src]
fn clone(&self) -> ElevationColor<Kind>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Kind: Copy> Copy for ElevationColor<Kind>
[src]
impl<Kind: Debug> Debug for ElevationColor<Kind>
[src]
impl<Kind> PartialEq<ElevationColor<Kind>> for ElevationColor<Kind>
[src]
impl<Kind> PartialOrd<ElevationColor<Kind>> for ElevationColor<Kind>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
partial_cmp only compares against elevation
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl<Kind> RefUnwindSafe for ElevationColor<Kind> where
Kind: RefUnwindSafe,
Kind: RefUnwindSafe,
impl<Kind> Send for ElevationColor<Kind> where
Kind: Send,
Kind: Send,
impl<Kind> Sync for ElevationColor<Kind> where
Kind: Sync,
Kind: Sync,
impl<Kind> Unpin for ElevationColor<Kind> where
Kind: Unpin,
Kind: Unpin,
impl<Kind> UnwindSafe for ElevationColor<Kind> where
Kind: UnwindSafe,
Kind: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
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, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[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> 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<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
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>,