#[repr(C, u8)]pub enum OptionNodeData {
None,
Some(NodeData),
}Variants§
Implementations§
Source§impl OptionNodeData
impl OptionNodeData
pub fn into_option(&self) -> Option<NodeData>
Source§impl OptionNodeData
impl OptionNodeData
pub fn as_option(&self) -> Option<&NodeData>
pub fn replace(&mut self, value: NodeData) -> OptionNodeData
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&NodeData>
pub fn as_mut(&mut self) -> Option<&mut NodeData>
pub fn map<U, F: FnOnce(NodeData) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Debug for OptionNodeData
impl Debug for OptionNodeData
Source§impl Default for OptionNodeData
impl Default for OptionNodeData
Source§fn default() -> OptionNodeData
fn default() -> OptionNodeData
Returns the “default value” for a type. Read more
Source§impl Ord for OptionNodeData
impl Ord for OptionNodeData
Source§fn cmp(&self, other: &OptionNodeData) -> Ordering
fn cmp(&self, other: &OptionNodeData) -> Ordering
1.21.0 · 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 OptionNodeData
impl PartialEq for OptionNodeData
Source§impl PartialOrd for OptionNodeData
impl PartialOrd for OptionNodeData
impl Eq for OptionNodeData
impl StructuralPartialEq for OptionNodeData
Auto Trait Implementations§
impl Freeze for OptionNodeData
impl RefUnwindSafe for OptionNodeData
impl Send for OptionNodeData
impl Sync for OptionNodeData
impl Unpin for OptionNodeData
impl UnsafeUnpin for OptionNodeData
impl UnwindSafe for OptionNodeData
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more