#[non_exhaustive]pub struct Change<O, N> {
pub old_val: Option<O>,
pub new_val: Option<N>,
pub result_type: Option<String>,
pub old_offset: Option<usize>,
pub new_offset: Option<usize>,
pub state: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.old_val: Option<O>§new_val: Option<N>§result_type: Option<String>§old_offset: Option<usize>§new_offset: Option<usize>§state: Option<String>Trait Implementations§
Source§impl<'de, O, N> Deserialize<'de> for Change<O, N>where
O: Deserialize<'de>,
N: Deserialize<'de>,
impl<'de, O, N> Deserialize<'de> for Change<O, N>where
O: Deserialize<'de>,
N: 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<O: Ord, N: Ord> Ord for Change<O, N>
impl<O: Ord, N: Ord> Ord for Change<O, N>
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<O: PartialOrd, N: PartialOrd> PartialOrd for Change<O, N>
impl<O: PartialOrd, N: PartialOrd> PartialOrd for Change<O, N>
impl<O: Eq, N: Eq> Eq for Change<O, N>
impl<O, N> StructuralPartialEq for Change<O, N>
Auto Trait Implementations§
impl<O, N> Freeze for Change<O, N>
impl<O, N> RefUnwindSafe for Change<O, N>where
O: RefUnwindSafe,
N: RefUnwindSafe,
impl<O, N> Send for Change<O, N>
impl<O, N> Sync for Change<O, N>
impl<O, N> Unpin for Change<O, N>
impl<O, N> UnwindSafe for Change<O, N>where
O: UnwindSafe,
N: 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