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