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