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