pub struct OptionalEdgeIndex<IndexType>(/* private fields */);Implementations§
Source§impl<IndexType> OptionalEdgeIndex<IndexType>
impl<IndexType> OptionalEdgeIndex<IndexType>
pub fn new_some(value: IndexType) -> Self
pub fn new_none() -> Selfwhere
IndexType: UpperBounded,
pub fn from_usize(value: usize) -> Self
pub fn from_option_usize(value: Option<usize>) -> Self
pub fn into_usize(self) -> Option<usize>
pub fn from_raw(value: Option<IndexType>) -> Self
pub fn into_raw(self) -> Option<IndexType>where
IndexType: UpperBounded + Eq,
pub fn is_some(&self) -> boolwhere
IndexType: UpperBounded + Eq,
pub fn is_none(&self) -> boolwhere
IndexType: UpperBounded + Eq,
Trait Implementations§
Source§impl<IndexType: Clone> Clone for OptionalEdgeIndex<IndexType>
impl<IndexType: Clone> Clone for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug> Debug for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug> Debug for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Display> Display for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Display> Display for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug> From<EdgeIndex<IndexType>> for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug> From<EdgeIndex<IndexType>> for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug> From<Option<EdgeIndex<IndexType>>> for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug> From<Option<EdgeIndex<IndexType>>> for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<Option<usize>> for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<Option<usize>> for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug> From<OptionalEdgeIndex<IndexType>> for Option<EdgeIndex<IndexType>>
impl<IndexType: UpperBounded + Eq + Debug> From<OptionalEdgeIndex<IndexType>> for Option<EdgeIndex<IndexType>>
Source§fn from(optional_index: OptionalEdgeIndex<IndexType>) -> Self
fn from(optional_index: OptionalEdgeIndex<IndexType>) -> Self
Converts to this type from the input type.
Source§impl<IndexType: UpperBounded + Eq + TryInto<usize>> From<OptionalEdgeIndex<IndexType>> for Option<usize>
impl<IndexType: UpperBounded + Eq + TryInto<usize>> From<OptionalEdgeIndex<IndexType>> for Option<usize>
Source§fn from(index: OptionalEdgeIndex<IndexType>) -> Self
fn from(index: OptionalEdgeIndex<IndexType>) -> Self
Converts to this type from the input type.
Source§impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<usize> for OptionalEdgeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<usize> for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: Hash> Hash for OptionalEdgeIndex<IndexType>
impl<IndexType: Hash> Hash for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: Ord> Ord for OptionalEdgeIndex<IndexType>
impl<IndexType: Ord> Ord for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: PartialEq> PartialEq for OptionalEdgeIndex<IndexType>
impl<IndexType: PartialEq> PartialEq for OptionalEdgeIndex<IndexType>
Source§impl<IndexType: PartialOrd> PartialOrd for OptionalEdgeIndex<IndexType>
impl<IndexType: PartialOrd> PartialOrd for OptionalEdgeIndex<IndexType>
impl<IndexType: Copy> Copy for OptionalEdgeIndex<IndexType>
impl<IndexType: Eq> Eq for OptionalEdgeIndex<IndexType>
Auto Trait Implementations§
impl<IndexType> Freeze for OptionalEdgeIndex<IndexType>where
IndexType: Freeze,
impl<IndexType> RefUnwindSafe for OptionalEdgeIndex<IndexType>where
IndexType: RefUnwindSafe,
impl<IndexType> Send for OptionalEdgeIndex<IndexType>where
IndexType: Send,
impl<IndexType> Sync for OptionalEdgeIndex<IndexType>where
IndexType: Sync,
impl<IndexType> Unpin for OptionalEdgeIndex<IndexType>where
IndexType: Unpin,
impl<IndexType> UnwindSafe for OptionalEdgeIndex<IndexType>where
IndexType: UnwindSafe,
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