pub struct BackendColor {
pub alpha: f64,
pub rgb: (u8, u8, u8),
}
Expand description
The color type that is used by all the backend
Fields§
§alpha: f64
§rgb: (u8, u8, u8)
Implementations§
Trait Implementations§
Source§impl BackendStyle for BackendColor
impl BackendStyle for BackendColor
Source§fn color(&self) -> BackendColor
fn color(&self) -> BackendColor
Get the color of current style
Source§fn stroke_width(&self) -> u32
fn stroke_width(&self) -> u32
Get the stroke width of current style
Source§impl Clone for BackendColor
impl Clone for BackendColor
Source§fn clone(&self) -> BackendColor
fn clone(&self) -> BackendColor
Returns a copy 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 moreimpl Copy for BackendColor
Auto Trait Implementations§
impl Freeze for BackendColor
impl RefUnwindSafe for BackendColor
impl Send for BackendColor
impl Sync for BackendColor
impl Unpin for BackendColor
impl UnwindSafe for BackendColor
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes