pub enum RelativeChannel {
Number(f64),
Percentage(f64),
Angle(f64, Unit),
Keyword(&'static str),
None,
Math(Math),
}Expand description
One channel of a relative color, as written.
Variants§
Number(f64)
Percentage(f64)
Angle(f64, Unit)
Keyword(&'static str)
One of the origin’s channels: r, h, alpha and so on.
None
Math(Math)
Trait Implementations§
Source§impl Clone for RelativeChannel
impl Clone for RelativeChannel
Source§fn clone(&self) -> RelativeChannel
fn clone(&self) -> RelativeChannel
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 moreSource§impl Debug for RelativeChannel
impl Debug for RelativeChannel
Source§impl Display for RelativeChannel
impl Display for RelativeChannel
Source§impl PartialEq for RelativeChannel
impl PartialEq for RelativeChannel
impl StructuralPartialEq for RelativeChannel
Auto Trait Implementations§
impl Forget for RelativeChannel
impl Freeze for RelativeChannel
impl Move for RelativeChannel
impl RefUnwindSafe for RelativeChannel
impl Send for RelativeChannel
impl Sync for RelativeChannel
impl Unpin for RelativeChannel
impl UnsafeUnpin for RelativeChannel
impl UnwindSafe for RelativeChannel
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