referrerpolicy=no-referrer-when-downgrade

Trait frame_support::traits::PrivilegeCmp

source ·
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§

source

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.

Implementors§