pub trait HasRole<R, P>where R: Debug, P: Debug,{ // Required methods fn has_role(&self, r: &R, p: &P) -> bool; fn has_role_object(&self, role: &Role<R, P>) -> bool; }