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