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