Skip to main content

Module state_key

Module state_key 

Source
Expand description

State-event key types and ordering helpers.

Keys combine a state event type with its state key for use in maps. The module also provides forward and reverse comparison functions.

Re-exportsยง

use std::cmp::Ordering; ๐Ÿ”’
use ruma::events::StateEventType; ๐Ÿ”’
use smallstr::SmallString; ๐Ÿ”’

Constantsยง

INLINE_SIZE ๐Ÿ”’

Functionsยง

cmp
Compares state keys in ascending event-type and state-key order.
rcmp
Compares state keys in descending event-type and state-key order.

Type Aliasesยง

StateKey
Inline-backed string used for Matrix state keys.
TypeStateKey
Composite key identifying one state event slot.