Skip to content

Enum permissions::Top

zaun_community_protocol::permissions::Top · Enum

pub enum Top { … }

A member’s top position. The owner is above every role.

The highest position among the member’s roles; 0 with none.

The owner: +∞.

pub fn of(is_owner: bool, roles: &[Role]) -> Self

top(m): +∞ for the owner, else the highest role position (0 with no role).

pub const fn above(self, position: u32) -> bool

Whether a role at position is strictly below this top (H4’s comparison).

Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, StructuralPartialEq

Full rustdoc page