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