#[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 const fn as_option(&self) -> Option<&ParentWithNodeDepth>
pub const fn replace( &mut self, value: ParentWithNodeDepth, ) -> OptionParentWithNodeDepth
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&ParentWithNodeDepth>
pub const 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 moreimpl Copy for OptionParentWithNodeDepth
Source§impl Default for OptionParentWithNodeDepth
impl Default for OptionParentWithNodeDepth
Source§fn default() -> OptionParentWithNodeDepth
fn default() -> OptionParentWithNodeDepth
Returns the “default value” for a type. Read more
impl Eq for OptionParentWithNodeDepth
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 PartialOrd for OptionParentWithNodeDepth
impl PartialOrd 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