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 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<'b, NK, EK, Old, New, OE, ON, OTN: 'b, NE, NN, NTN> Downcast<'b, NK, EK, EitherVersion<&'b OTN, &'b NTN>, InBetween<NK, EK, Old, New>> for EitherVersion<ON, NN>
impl<'b, NK, EK, Old, New, OE, ON, OTN: 'b, NE, NN, NTN> Downcast<'b, NK, EK, EitherVersion<&'b OTN, &'b NTN>, InBetween<NK, EK, Old, New>> for EitherVersion<ON, NN>
Source§fn downcast<'a: 'b>(
&'a self,
) -> SchemaResult<EitherVersion<&'b OTN, &'b NTN>, NK, EK, InBetween<NK, EK, Old, New>>
fn downcast<'a: 'b>( &'a self, ) -> SchemaResult<EitherVersion<&'b OTN, &'b NTN>, NK, EK, InBetween<NK, EK, Old, New>>
Cast a node or edge into a more specific type Read more
Source§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
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
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