pub struct PresetColor { /* private fields */ }Implementations§
Source§impl PresetColor
impl PresetColor
pub fn val(&self) -> &str
pub fn get_val(&self) -> &str
👎Deprecated since 3.0.0:
Use val()
pub fn set_val<S: Into<String>>(&mut self, value: S)
pub fn alpha(&self) -> Option<&Alpha>
pub fn get_alpha(&self) -> Option<&Alpha>
👎Deprecated since 3.0.0:
Use alpha()
pub fn alpha_mut(&mut self) -> Option<&mut Alpha>
pub fn get_alpha_mut(&mut self) -> Option<&mut Alpha>
👎Deprecated since 3.0.0:
Use alpha_mut()
pub fn set_alpha(&mut self, value: Alpha)
Trait Implementations§
Source§impl Clone for PresetColor
impl Clone for PresetColor
Source§fn clone(&self) -> PresetColor
fn clone(&self) -> PresetColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresetColor
impl Debug for PresetColor
Source§impl Default for PresetColor
impl Default for PresetColor
Source§fn default() -> PresetColor
fn default() -> PresetColor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PresetColor
impl RefUnwindSafe for PresetColor
impl Send for PresetColor
impl Sync for PresetColor
impl Unpin for PresetColor
impl UnsafeUnpin for PresetColor
impl UnwindSafe for PresetColor
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