#[repr(transparent)]pub struct BasicColorRgbOverrideOrHsvModifiersPod(pub Vec3);Expand description
The POD representation of the basic color RGB override or HSV modifiers.
If any value of this vector is negative (including negative zero), then it is used to override the RGB color, otherwise it is used to apply HSV modifications.
Tuple Fields§
§0: Vec3Implementations§
Source§impl BasicColorRgbOverrideOrHsvModifiersPod
impl BasicColorRgbOverrideOrHsvModifiersPod
Sourcepub fn new_rgb_override(rgb: Vec3) -> Self
pub fn new_rgb_override(rgb: Vec3) -> Self
Creates a new RGB override pod.
Sourcepub const fn new_hsv_modifiers(hsv: Vec3) -> Self
pub const fn new_hsv_modifiers(hsv: Vec3) -> Self
Creates a new HSV modifiers pod.
Sourcepub fn is_rgb_override(&self) -> bool
pub fn is_rgb_override(&self) -> bool
Checks if this pod represents an RGB override.
Sourcepub fn is_hsv_modifiers(&self) -> bool
pub fn is_hsv_modifiers(&self) -> bool
Checks if this pod represents HSV modifiers.
Trait Implementations§
Source§impl Clone for BasicColorRgbOverrideOrHsvModifiersPod
impl Clone for BasicColorRgbOverrideOrHsvModifiersPod
Source§fn clone(&self) -> BasicColorRgbOverrideOrHsvModifiersPod
fn clone(&self) -> BasicColorRgbOverrideOrHsvModifiersPod
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 PartialEq for BasicColorRgbOverrideOrHsvModifiersPod
impl PartialEq for BasicColorRgbOverrideOrHsvModifiersPod
Source§fn eq(&self, other: &BasicColorRgbOverrideOrHsvModifiersPod) -> bool
fn eq(&self, other: &BasicColorRgbOverrideOrHsvModifiersPod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BasicColorRgbOverrideOrHsvModifiersPod
impl Pod for BasicColorRgbOverrideOrHsvModifiersPod
impl StructuralPartialEq for BasicColorRgbOverrideOrHsvModifiersPod
Auto Trait Implementations§
impl Freeze for BasicColorRgbOverrideOrHsvModifiersPod
impl RefUnwindSafe for BasicColorRgbOverrideOrHsvModifiersPod
impl Send for BasicColorRgbOverrideOrHsvModifiersPod
impl Sync for BasicColorRgbOverrideOrHsvModifiersPod
impl Unpin for BasicColorRgbOverrideOrHsvModifiersPod
impl UnwindSafe for BasicColorRgbOverrideOrHsvModifiersPod
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more