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