pub struct Compatible<Old, Current>(/* private fields */);Implementations§
Source§impl<Old, Current> Compatible<Old, Current>
impl<Old, Current> Compatible<Old, Current>
pub fn deserialize_with<'de, D>(deserializer: D) -> Result<Current, D::Error>
Source§impl<Old, Current> Compatible<Old, Current>where
Current: CompatibleWith<Old>,
impl<Old, Current> Compatible<Old, Current>where
Current: CompatibleWith<Old>,
pub fn into_current(self) -> Current
pub fn make_current(self) -> Self
Trait Implementations§
Source§impl<Old: Clone, Current: Clone> Clone for Compatible<Old, Current>
impl<Old: Clone, Current: Clone> Clone for Compatible<Old, Current>
Source§fn clone(&self) -> Compatible<Old, Current>
fn clone(&self) -> Compatible<Old, Current>
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<'de, Old, Current> Deserialize<'de> for Compatible<Old, Current>
impl<'de, Old, Current> Deserialize<'de> for Compatible<Old, Current>
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 Compatible<Old, Current>
impl<Old: Ord, Current: Ord> Ord for Compatible<Old, Current>
Source§fn cmp(&self, other: &Compatible<Old, Current>) -> Ordering
fn cmp(&self, other: &Compatible<Old, Current>) -> Ordering
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 Compatible<Old, Current>
impl<Old: PartialOrd, Current: PartialOrd> PartialOrd for Compatible<Old, Current>
Source§impl<Old, Current> Serialize for Compatible<Old, Current>
impl<Old, Current> Serialize for Compatible<Old, Current>
impl<Old: Copy, Current: Copy> Copy for Compatible<Old, Current>
impl<Old: Eq, Current: Eq> Eq for Compatible<Old, Current>
impl<Old, Current> StructuralPartialEq for Compatible<Old, Current>
Auto Trait Implementations§
impl<Old, Current> Freeze for Compatible<Old, Current>
impl<Old, Current> RefUnwindSafe for Compatible<Old, Current>where
Old: RefUnwindSafe,
Current: RefUnwindSafe,
impl<Old, Current> Send for Compatible<Old, Current>
impl<Old, Current> Sync for Compatible<Old, Current>
impl<Old, Current> Unpin for Compatible<Old, Current>
impl<Old, Current> UnwindSafe for Compatible<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