[][src]Enum compare_fields::Comparison

pub enum Comparison {
    Child(FieldComparison),
    Parent {
        field_name: String,
        equal: bool,
        children: Vec<FieldComparison>,
    },
}

Variants

Child(FieldComparison)
Parent

Fields of Parent

field_name: Stringequal: boolchildren: Vec<FieldComparison>

Methods

impl Comparison[src]

pub fn child<T: Debug + PartialEq<T>>(field_name: String, a: &T, b: &T) -> Self[src]

pub fn parent(
    field_name: String,
    equal: bool,
    children: Vec<FieldComparison>
) -> Self
[src]

pub fn from_slice<T: Debug + PartialEq<T>>(
    field_name: String,
    a: &[T],
    b: &[T]
) -> Self
[src]

pub fn retain_children<F>(&mut self, f: F) where
    F: FnMut(&FieldComparison) -> bool
[src]

pub fn equal(&self) -> bool[src]

pub fn not_equal(&self) -> bool[src]

Trait Implementations

impl Clone for Comparison[src]

impl PartialEq<Comparison> for Comparison[src]

impl Debug for Comparison[src]

Auto Trait Implementations

impl Send for Comparison

impl Unpin for Comparison

impl Sync for Comparison

impl UnwindSafe for Comparison

impl RefUnwindSafe for Comparison

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]