pub trait ViewRel {
type Auth;
type Frag: UnitRA;
// Required methods
fn rel(a: Option<Self::Auth>, f: Self::Frag) -> bool;
fn rel_mono(a: Option<Self::Auth>, f1: Self::Frag, f2: Self::Frag);
fn rel_none(a: Option<Self::Auth>, f: Self::Frag);
fn rel_unit(a: Option<Self::Auth>);
}Expand description
The relation used in View.
Required Associated Types§
Required Methods§
Sourcefn rel(a: Option<Self::Auth>, f: Self::Frag) -> bool
fn rel(a: Option<Self::Auth>, f: Self::Frag) -> bool
The relation between the authority and a fragment
⚠
Sourcefn rel_mono(a: Option<Self::Auth>, f1: Self::Frag, f2: Self::Frag)
fn rel_mono(a: Option<Self::Auth>, f1: Self::Frag, f2: Self::Frag)
(law) ⚠
requires
Self::rel(a, f1)requires
f2.incl(f1)ensures
Self::rel(a, f2)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.