Enum permissions::Top
zaun_community_protocol::permissions::Top · Enum
pub enum Top { … }A member’s top position. The owner is above every role.
Variants
Section titled “Variants”Position(u32)
Section titled “Position(u32)”The highest position among the member’s roles; 0 with none.
The owner: +∞.
Methods
Section titled “Methods”pub fn of(is_owner: bool, roles: &[Role]) -> Selftop(m): +∞ for the owner, else the highest role position (0 with no role).
pub const fn above(self, position: u32) -> boolWhether a role at position is strictly below this top (H4’s comparison).
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, StructuralPartialEq