pub struct RgbaBuilder { /* private fields */ }Expand description
Builder for Rgba.
Implementations§
Source§impl RgbaBuilder
impl RgbaBuilder
Sourcepub fn r<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn r<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The red component, in the [0-255] range.
Sourcepub fn g<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn g<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The green component, in the [0-255] range.
Sourcepub fn b<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn b<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The blue component, in the [0-255] range.
Trait Implementations§
Source§impl Clone for RgbaBuilder
impl Clone for RgbaBuilder
Source§fn clone(&self) -> RgbaBuilder
fn clone(&self) -> RgbaBuilder
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 moreAuto Trait Implementations§
impl Freeze for RgbaBuilder
impl RefUnwindSafe for RgbaBuilder
impl Send for RgbaBuilder
impl Sync for RgbaBuilder
impl Unpin for RgbaBuilder
impl UnsafeUnpin for RgbaBuilder
impl UnwindSafe for RgbaBuilder
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