pub struct Color {
pub r: f32,
pub g: f32,
pub b: f32,
}Fields§
§r: f32§g: f32§b: f32Implementations§
Source§impl Color
impl Color
pub const BLACK: Color
Sourcepub const TRANSPARENT: Color
pub const TRANSPARENT: Color
Internal paint sentinel for a fully transparent CSS border color. Border geometry still participates in layout and conflict resolution, while the paint layer leaves the cell background visible underneath.
pub fn rgb(r: f32, g: f32, b: f32) -> Self
Trait Implementations§
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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