# Enum permissions::Top

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

`zaun_community_protocol::permissions::Top` · Enum

```rust
pub enum Top { … }
```

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

## Variants

### `Position(u32)`

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

### `Owner`

The owner: +∞.

## Methods

### `of`

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

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

### `above`

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

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

## Trait implementations

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/hierarchy/enum.Top.html)
