#[repr(C, u8)]pub enum OptionColorU {
None,
Some(ColorU),
}Variants§
Implementations§
Source§impl OptionColorU
impl OptionColorU
pub fn into_option(&self) -> Option<ColorU>
Source§impl OptionColorU
impl OptionColorU
pub fn as_option(&self) -> Option<&ColorU>
pub fn replace(&mut self, value: ColorU) -> OptionColorU
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ColorU>
pub fn as_mut(&mut self) -> Option<&mut ColorU>
pub fn map<U, F: FnOnce(ColorU) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionColorU
impl Clone for OptionColorU
Source§fn clone(&self) -> OptionColorU
fn clone(&self) -> OptionColorU
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 moreSource§impl Debug for OptionColorU
impl Debug for OptionColorU
Source§impl Default for OptionColorU
impl Default for OptionColorU
Source§fn default() -> OptionColorU
fn default() -> OptionColorU
Returns the “default value” for a type. Read more
Source§impl Hash for OptionColorU
impl Hash for OptionColorU
Source§impl Ord for OptionColorU
impl Ord for OptionColorU
Source§fn cmp(&self, other: &OptionColorU) -> Ordering
fn cmp(&self, other: &OptionColorU) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptionColorU
impl PartialEq for OptionColorU
Source§impl PartialOrd for OptionColorU
impl PartialOrd for OptionColorU
impl Copy for OptionColorU
impl Eq for OptionColorU
impl StructuralPartialEq for OptionColorU
Auto Trait Implementations§
impl Freeze for OptionColorU
impl RefUnwindSafe for OptionColorU
impl Send for OptionColorU
impl Sync for OptionColorU
impl Unpin for OptionColorU
impl UnwindSafe for OptionColorU
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