pub struct ColorF {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
Expand description
f32-based color, range 0.0 to 1.0 (similar to webrenders ColorF)
Fields§
§r: f32
§g: f32
§b: f32
§a: f32
Implementations§
Trait Implementations§
Source§impl PartialOrd for ColorF
impl PartialOrd for ColorF
impl Copy for ColorF
impl StructuralPartialEq for ColorF
Auto Trait Implementations§
impl Freeze for ColorF
impl RefUnwindSafe for ColorF
impl Send for ColorF
impl Sync for ColorF
impl Unpin for ColorF
impl UnwindSafe for ColorF
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)