pub trait PrivilegeCmp<Origin> {
    // Required method
    fn cmp_privilege(left: &Origin, right: &Origin) -> Option<Ordering>;
Expand description

Something that can compare privileges of two origins.

Required Methods§


fn cmp_privilege(left: &Origin, right: &Origin) -> Option<Ordering>

Compare the left to the right origin.

The returned ordering should be from the pov of the left origin.

Should return None when it can not compare the given origins.

Object Safety§

This trait is not object safe.