Trait FacetDiff

Source
pub trait FacetDiff<'f>: Facet<'f> {
    // Required method
    fn diff<'a, U: Facet<'f>>(&'a self, other: &'a U) -> Diff<'a, 'f>;
}
Expand description

Extension trait that provides a [diff] method for Facet types

Required Methods§

Source

fn diff<'a, U: Facet<'f>>(&'a self, other: &'a U) -> Diff<'a, 'f>

Computes the difference between two values that implement Facet

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'f, T: Facet<'f>> FacetDiff<'f> for T