pub struct ChangedType<T> {
pub from: T,
pub to: T,
}
Expand description
Aux type for Diff::Changed.
Fields§
§from: T
Previous value.
to: T
Current value.
Trait Implementations§
Source§impl<T: Clone> Clone for ChangedType<T>
impl<T: Clone> Clone for ChangedType<T>
Source§fn clone(&self) -> ChangedType<T>
fn clone(&self) -> ChangedType<T>
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<T: Debug> Debug for ChangedType<T>
impl<T: Debug> Debug for ChangedType<T>
Source§impl<'de, T> Deserialize<'de> for ChangedType<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ChangedType<T>where
T: 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<T: PartialEq> PartialEq for ChangedType<T>
impl<T: PartialEq> PartialEq for ChangedType<T>
Source§impl<T> Serialize for ChangedType<T>where
T: Serialize,
impl<T> Serialize for ChangedType<T>where
T: Serialize,
impl<T> StructuralPartialEq for ChangedType<T>
Auto Trait Implementations§
impl<T> Freeze for ChangedType<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChangedType<T>where
T: RefUnwindSafe,
impl<T> Send for ChangedType<T>where
T: Send,
impl<T> Sync for ChangedType<T>where
T: Sync,
impl<T> Unpin for ChangedType<T>where
T: Unpin,
impl<T> UnwindSafe for ChangedType<T>where
T: 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