#[non_exhaustive]pub struct SettingComparison<T> {
pub a: Option<T>,
pub b: Option<T>,
pub same: Option<bool>,
}Expand description
One recorded setting on each side, and whether the two agree.
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.a: Option<T>What a recorded, or None when it did not record the setting.
b: Option<T>What b recorded.
same: Option<bool>Some(true) when both recorded the setting and it is the same,
Some(false) when it differs, None when either side did not
record it.
Trait Implementations§
Source§impl<T: Clone> Clone for SettingComparison<T>
impl<T: Clone> Clone for SettingComparison<T>
Source§impl<T: Debug> Debug for SettingComparison<T>
impl<T: Debug> Debug for SettingComparison<T>
Source§impl<T: PartialEq> PartialEq for SettingComparison<T>
impl<T: PartialEq> PartialEq for SettingComparison<T>
Source§impl<T> Serialize for SettingComparison<T>where
T: Serialize,
impl<T> Serialize for SettingComparison<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for SettingComparison<T>
Auto Trait Implementations§
impl<T> Freeze for SettingComparison<T>
impl<T> RefUnwindSafe for SettingComparison<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for SettingComparison<T>
impl<T> Sync for SettingComparison<T>
impl<T> Unpin for SettingComparison<T>
impl<T> UnsafeUnpin for SettingComparison<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for SettingComparison<T>where
Option<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