pub enum ColorChannel {
Rotation(Rotation),
Integer(u8),
Percent(Numeric),
}
Variants§
Implementations§
Source§impl ColorChannel
impl ColorChannel
Sourcepub fn to_float_0_1(&self) -> f64
pub fn to_float_0_1(&self) -> f64
Normalizes this ColorChannel as a float [0.0, 1.0]
Trait Implementations§
Source§impl Clone for ColorChannel
impl Clone for ColorChannel
Source§fn clone(&self) -> ColorChannel
fn clone(&self) -> ColorChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CoercionRules for ColorChannel
impl CoercionRules for ColorChannel
Source§impl Debug for ColorChannel
impl Debug for ColorChannel
Source§impl Default for ColorChannel
impl Default for ColorChannel
Source§impl<'de> Deserialize<'de> for ColorChannel
impl<'de> Deserialize<'de> for ColorChannel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ColorChannel
impl Display for ColorChannel
Source§impl From<Numeric> for ColorChannel
impl From<Numeric> for ColorChannel
Source§impl From<f64> for ColorChannel
impl From<f64> for ColorChannel
Source§impl From<i32> for ColorChannel
impl From<i32> for ColorChannel
Source§impl Into<ColorChannel> for Percent
impl Into<ColorChannel> for Percent
Source§fn into(self) -> ColorChannel
fn into(self) -> ColorChannel
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ColorChannel
impl PartialEq for ColorChannel
Source§impl Serialize for ColorChannel
impl Serialize for ColorChannel
Source§impl ToPaxValue for ColorChannel
impl ToPaxValue for ColorChannel
fn to_pax_value(self) -> PaxValue
impl StructuralPartialEq for ColorChannel
Auto Trait Implementations§
impl Freeze for ColorChannel
impl RefUnwindSafe for ColorChannel
impl Send for ColorChannel
impl Sync for ColorChannel
impl Unpin for ColorChannel
impl UnwindSafe for ColorChannel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.