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: PartialOrd, Current: PartialOrd> PartialOrd for Alt<Old, Current>
impl<Old: PartialOrd, Current: PartialOrd> PartialOrd for Alt<Old, Current>
impl<Old: Copy, Current: Copy> Copy for Alt<Old, Current>
impl<Old: Eq, Current: Eq> Eq for Alt<Old, Current>
impl<Old, Current> StructuralPartialEq for Alt<Old, Current>
Auto Trait Implementations§
impl<Old, Current> Freeze for Alt<Old, Current>
impl<Old, Current> RefUnwindSafe for Alt<Old, Current>where
Old: RefUnwindSafe,
Current: RefUnwindSafe,
impl<Old, Current> Send for Alt<Old, Current>
impl<Old, Current> Sync for Alt<Old, Current>
impl<Old, Current> Unpin for Alt<Old, Current>
impl<Old, Current> UnwindSafe for Alt<Old, Current>where
Old: UnwindSafe,
Current: 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