#[repr(C)]pub struct Rgba(pub Vec4);Expand description
Rgba
Tuple Fields§
§0: Vec4Methods from Deref<Target = Vec4>§
pub const ZERO: Vec4
pub const ONE: Vec4
pub const NEG_ONE: Vec4
pub const MIN: Vec4
pub const MAX: Vec4
pub const NAN: Vec4
pub const INFINITY: Vec4
pub const NEG_INFINITY: Vec4
pub const X: Vec4
pub const Y: Vec4
pub const Z: Vec4
pub const W: Vec4
pub const NEG_X: Vec4
pub const NEG_Y: Vec4
pub const NEG_Z: Vec4
pub const NEG_W: Vec4
pub const AXES: [Vec4; 4]
pub const USES_CORE_SIMD: bool = false
pub const USES_NEON: bool = false
pub const USES_SCALAR_MATH: bool = false
pub const USES_SSE2: bool = true
pub const USES_WASM32_SIMD: bool = false
Sourcepub fn move_towards(&self, rhs: Vec4, d: f32) -> Vec4
pub fn move_towards(&self, rhs: Vec4, d: f32) -> Vec4
Moves towards rhs based on the value d.
When d is 0.0, the result will be equal to self. When d is equal to
self.distance(rhs), the result will be equal to rhs. Will not go past rhs.
Sourcepub fn as_i16vec4(&self) -> I16Vec4
pub fn as_i16vec4(&self) -> I16Vec4
Casts all elements of self to i16.
Sourcepub fn as_u16vec4(&self) -> U16Vec4
pub fn as_u16vec4(&self) -> U16Vec4
Casts all elements of self to u16.
Sourcepub fn as_i64vec4(&self) -> I64Vec4
pub fn as_i64vec4(&self) -> I64Vec4
Casts all elements of self to i64.
Sourcepub fn as_u64vec4(&self) -> U64Vec4
pub fn as_u64vec4(&self) -> U64Vec4
Casts all elements of self to u64.
Sourcepub fn as_usizevec4(&self) -> USizeVec4
pub fn as_usizevec4(&self) -> USizeVec4
Casts all elements of self to usize.
Trait Implementations§
Source§impl<CS: ColorSpace> From<AlphaColor<CS>> for Rgba
impl<CS: ColorSpace> From<AlphaColor<CS>> for Rgba
Source§fn from(value: AlphaColor<CS>) -> Self
fn from(value: AlphaColor<CS>) -> Self
Converts to this type from the input type.
Source§impl Interpolatable for Rgba
impl Interpolatable for Rgba
Source§impl Opacity for Rgba
impl Opacity for Rgba
Source§fn set_opacity(&mut self, opacity: f32) -> &mut Self
fn set_opacity(&mut self, opacity: f32) -> &mut Self
Setting opacity of an item
impl Copy for Rgba
impl Pod for Rgba
impl StructuralPartialEq for Rgba
Auto Trait Implementations§
impl Freeze for Rgba
impl RefUnwindSafe for Rgba
impl Send for Rgba
impl Sync for Rgba
impl Unpin for Rgba
impl UnwindSafe for Rgba
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
Source§fn show(&self) -> AnimationCell<T>
fn show(&self) -> AnimationCell<T>
Show the item
Source§fn hide(&self) -> AnimationCell<T>
fn hide(&self) -> AnimationCell<T>
Hide the item