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