#[repr(C, u8)]pub enum OptionPixelValue {
None,
Some(PixelValue),
}Variants§
None
Some(PixelValue)
Implementations§
Source§impl OptionPixelValue
impl OptionPixelValue
pub fn into_option(&self) -> Option<PixelValue>
Source§impl OptionPixelValue
impl OptionPixelValue
pub fn as_option(&self) -> Option<&PixelValue>
pub fn replace(&mut self, value: PixelValue) -> OptionPixelValue
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&PixelValue>
pub fn as_mut(&mut self) -> Option<&mut PixelValue>
pub fn map<U, F: FnOnce(PixelValue) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionPixelValue
impl Clone for OptionPixelValue
Source§fn clone(&self) -> OptionPixelValue
fn clone(&self) -> OptionPixelValue
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 OptionPixelValue
impl Debug for OptionPixelValue
Source§impl Default for OptionPixelValue
impl Default for OptionPixelValue
Source§fn default() -> OptionPixelValue
fn default() -> OptionPixelValue
Returns the “default value” for a type. Read more
Source§impl From<Option<PixelValue>> for OptionPixelValue
impl From<Option<PixelValue>> for OptionPixelValue
Source§fn from(o: Option<PixelValue>) -> OptionPixelValue
fn from(o: Option<PixelValue>) -> OptionPixelValue
Converts to this type from the input type.
Source§impl From<OptionPixelValue> for Option<PixelValue>
impl From<OptionPixelValue> for Option<PixelValue>
Source§fn from(o: OptionPixelValue) -> Option<PixelValue>
fn from(o: OptionPixelValue) -> Option<PixelValue>
Converts to this type from the input type.
Source§impl Hash for OptionPixelValue
impl Hash for OptionPixelValue
Source§impl Ord for OptionPixelValue
impl Ord for OptionPixelValue
Source§fn cmp(&self, other: &OptionPixelValue) -> Ordering
fn cmp(&self, other: &OptionPixelValue) -> 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 OptionPixelValue
impl PartialEq for OptionPixelValue
Source§impl PartialOrd for OptionPixelValue
impl PartialOrd for OptionPixelValue
impl Copy for OptionPixelValue
impl Eq for OptionPixelValue
impl StructuralPartialEq for OptionPixelValue
Auto Trait Implementations§
impl Freeze for OptionPixelValue
impl RefUnwindSafe for OptionPixelValue
impl Send for OptionPixelValue
impl Sync for OptionPixelValue
impl Unpin for OptionPixelValue
impl UnwindSafe for OptionPixelValue
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