pub struct RgbWithDistance(pub Vec4);Expand description
r, g, b, distance
Tuple Fields§
§0: Vec4Trait Implementations§
Source§impl Clone for RgbWithDistance
impl Clone for RgbWithDistance
Source§fn clone(&self) -> RgbWithDistance
fn clone(&self) -> RgbWithDistance
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 Debug for RgbWithDistance
impl Debug for RgbWithDistance
Source§impl Default for RgbWithDistance
impl Default for RgbWithDistance
Source§fn default() -> RgbWithDistance
fn default() -> RgbWithDistance
Returns the “default value” for a type. Read more
Source§impl PartialEq for RgbWithDistance
impl PartialEq for RgbWithDistance
Source§impl SignedDistance for RgbWithDistance
impl SignedDistance for RgbWithDistance
fn infinity() -> Self
fn distance(&self) -> f32
fn material(&self) -> Material
fn copy_with_distance(&self, distance: f32) -> Self
fn multiply_distance_by(&self, factor: f32) -> Self
fn new_with_distance(material: Material, distance: f32) -> Self
fn lerp(&self, b: &Self, t: f32) -> Self
fn is_distance_finite(&self) -> bool
impl Copy for RgbWithDistance
impl StructuralPartialEq for RgbWithDistance
Auto Trait Implementations§
impl Freeze for RgbWithDistance
impl RefUnwindSafe for RgbWithDistance
impl Send for RgbWithDistance
impl Sync for RgbWithDistance
impl Unpin for RgbWithDistance
impl UnwindSafe for RgbWithDistance
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