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