Enum typed_graph::EitherVersion
source · pub enum EitherVersion<Old, New> {
Old(Old),
New(New),
}
Variants§
Trait Implementations§
source§impl<Old: Clone, New: Clone> Clone for EitherVersion<Old, New>
impl<Old: Clone, New: Clone> Clone for EitherVersion<Old, New>
source§fn clone(&self) -> EitherVersion<Old, New>
fn clone(&self) -> EitherVersion<Old, New>
Returns a copy 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<Old, New> From<EitherVersion<Old, New>> for Option<New>
impl<Old, New> From<EitherVersion<Old, New>> for Option<New>
source§fn from(value: EitherVersion<Old, New>) -> Self
fn from(value: EitherVersion<Old, New>) -> Self
Converts to this type from the input type.
source§impl<Old, New, OldType, NewType> PartialEq<EitherVersion<OldType, NewType>> for EitherVersion<Old, New>
impl<Old, New, OldType, NewType> PartialEq<EitherVersion<OldType, NewType>> for EitherVersion<Old, New>
source§fn eq(&self, other: &EitherVersion<OldType, NewType>) -> bool
fn eq(&self, other: &EitherVersion<OldType, NewType>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Old: Copy, New: Copy> Copy for EitherVersion<Old, New>
impl<EK: Key, Old: EdgeExt<EK>, New: EdgeExt<EK>> EdgeExt<EK> for EitherVersion<Old, New>
impl<NK: Key, Old: NodeExt<NK>, New: NodeExt<NK>> NodeExt<NK> for EitherVersion<Old, New>
Auto Trait Implementations§
impl<Old, New> Freeze for EitherVersion<Old, New>
impl<Old, New> RefUnwindSafe for EitherVersion<Old, New>where
Old: RefUnwindSafe,
New: RefUnwindSafe,
impl<Old, New> Send for EitherVersion<Old, New>
impl<Old, New> Sync for EitherVersion<Old, New>
impl<Old, New> Unpin for EitherVersion<Old, New>
impl<Old, New> UnwindSafe for EitherVersion<Old, New>where
Old: UnwindSafe,
New: 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