Debian Codegraph @

src/third_party/newtype_uuid_impls.rs

raw symbols SCIP
1 use crate::{Diffable, Leaf};
2 use newtype_uuid::{TypedUuid, TypedUuidKind};
3
4 impl<T> Diffable for TypedUuid<T>
5 where
6 T: TypedUuidKind + Diffable,
7 {
8 type Diff<'daft> = Leaf<&'daft TypedUuid<T>>;
9
10 fn diff<'daft>(&'daft self, other: &'daft Self) -> Self::Diff<'daft> {
11 Leaf { before: self, after: other }
12 }
13 }