pub trait HasPrivilege {
type Privilege;
// Required methods
fn downgrade(self, privilege: &Self::Privilege) -> Self;
fn downgrade_to(self, target: Self, privilege: &Self::Privilege) -> Self;
fn can_flow_to_with_privilege(
&self,
rhs: &Self,
privilege: &Self::Privilege,
) -> bool;
}
Required Associated Types§
Required Methods§
fn downgrade(self, privilege: &Self::Privilege) -> Self
fn downgrade_to(self, target: Self, privilege: &Self::Privilege) -> Self
fn can_flow_to_with_privilege( &self, rhs: &Self, privilege: &Self::Privilege, ) -> bool
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.