Enum compatible_with::Alt
source · pub enum Alt<Old, Current> {
Old(Old),
Current(Current),
}Variants§
Trait Implementations§
source§impl<'de, Old, Current> Deserialize<'de> for Alt<Old, Current>where
Old: Deserialize<'de>,
Current: Deserialize<'de>,
impl<'de, Old, Current> Deserialize<'de> for Alt<Old, Current>where Old: Deserialize<'de>, Current: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Old: Ord, Current: Ord> Ord for Alt<Old, Current>
impl<Old: Ord, Current: Ord> Ord for Alt<Old, Current>
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<Old: PartialEq, Current: PartialEq> PartialEq<Alt<Old, Current>> for Alt<Old, Current>
impl<Old: PartialEq, Current: PartialEq> PartialEq<Alt<Old, Current>> for Alt<Old, Current>
source§impl<Old: PartialOrd, Current: PartialOrd> PartialOrd<Alt<Old, Current>> for Alt<Old, Current>
impl<Old: PartialOrd, Current: PartialOrd> PartialOrd<Alt<Old, Current>> for Alt<Old, Current>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<Old: Copy, Current: Copy> Copy for Alt<Old, Current>
impl<Old: Eq, Current: Eq> Eq for Alt<Old, Current>
impl<Old, Current> StructuralEq for Alt<Old, Current>
impl<Old, Current> StructuralPartialEq for Alt<Old, Current>
Auto Trait Implementations§
impl<Old, Current> RefUnwindSafe for Alt<Old, Current>where Current: RefUnwindSafe, Old: RefUnwindSafe,
impl<Old, Current> Send for Alt<Old, Current>where Current: Send, Old: Send,
impl<Old, Current> Sync for Alt<Old, Current>where Current: Sync, Old: Sync,
impl<Old, Current> Unpin for Alt<Old, Current>where Current: Unpin, Old: Unpin,
impl<Old, Current> UnwindSafe for Alt<Old, Current>where Current: UnwindSafe, Old: 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