diffus

Trait Diffable

source
pub trait Diffable<'a> {
    type Diff: 'a;

    // Required method
    fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>;
}

Required Associated Types§

source

type Diff: 'a

Required Methods§

source

fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Diffable<'a> for bool

source§

type Diff = (&'a bool, &'a bool)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for char

source§

type Diff = (&'a char, &'a char)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for f32

source§

type Diff = (&'a f32, &'a f32)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for f64

source§

type Diff = (&'a f64, &'a f64)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for i8

source§

type Diff = (&'a i8, &'a i8)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for i16

source§

type Diff = (&'a i16, &'a i16)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for i32

source§

type Diff = (&'a i32, &'a i32)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for i64

source§

type Diff = (&'a i64, &'a i64)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for isize

source§

type Diff = (&'a isize, &'a isize)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for str

source§

type Diff = Vec<Edit>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for u8

source§

type Diff = (&'a u8, &'a u8)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for u16

source§

type Diff = (&'a u16, &'a u16)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for u32

source§

type Diff = (&'a u32, &'a u32)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for u64

source§

type Diff = (&'a u64, &'a u64)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for ()

source§

type Diff = (&'a (), &'a ())

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for usize

source§

type Diff = (&'a usize, &'a usize)

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a> Diffable<'a> for String

source§

type Diff = <str as Diffable<'a>>::Diff

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, K: Eq + Ord + 'a, V: Diffable<'a> + 'a> Diffable<'a> for BTreeMap<K, V>

source§

type Diff = BTreeMap<&'a K, Edit<'a, V>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, K: Eq + Hash + 'a, V: Diffable<'a> + 'a> Diffable<'a> for HashMap<K, V>

source§

type Diff = HashMap<&'a K, Edit<'a, V>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, K: Diffable<'a> + Eq + Ord + 'a> Diffable<'a> for BTreeSet<K>

source§

type Diff = BTreeMap<&'a K, Edit<'a, K>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, K: Diffable<'a> + Eq + Hash + 'a> Diffable<'a> for HashSet<K>

source§

type Diff = HashMap<&'a K, Edit<'a, K>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, T: Diffable<'a> + 'a> Diffable<'a> for Option<T>

source§

type Diff = Edit<'a, Option<T>, <T as Diffable<'a>>::Diff>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, T: Diffable<'a> + ?Sized + 'a> Diffable<'a> for &'a T

source§

type Diff = <T as Diffable<'a>>::Diff

source§

fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>

source§

impl<'a, T: Diffable<'a> + ?Sized + 'a> Diffable<'a> for Box<T>

source§

type Diff = Box<<T as Diffable<'a>>::Diff>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>

source§

impl<'a, T: Diffable<'a> + ?Sized + 'a> Diffable<'a> for Rc<T>

source§

type Diff = Rc<<T as Diffable<'a>>::Diff>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>

source§

impl<'a, T: Diffable<'a> + ?Sized + 'a> Diffable<'a> for Arc<T>

source§

type Diff = Arc<<T as Diffable<'a>>::Diff>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'a, Self>

source§

impl<'a, T: Same + Diffable<'a> + 'a> Diffable<'a> for BinaryHeap<T>

source§

type Diff = Vec<Edit<'a, T, <T as Diffable<'a>>::Diff>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, T: Same + Diffable<'a> + 'a> Diffable<'a> for LinkedList<T>

source§

type Diff = Vec<Edit<'a, T, <T as Diffable<'a>>::Diff>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, T: Same + Diffable<'a> + 'a> Diffable<'a> for VecDeque<T>

source§

type Diff = Vec<Edit<'a, T, <T as Diffable<'a>>::Diff>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

source§

impl<'a, T: Same + Diffable<'a> + 'a> Diffable<'a> for Vec<T>

source§

type Diff = Vec<Edit<'a, T, <T as Diffable<'a>>::Diff>>

source§

fn diff(&'a self, other: &'a Self) -> Edit<'_, Self>

Implementors§