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