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