Skip to main content

split

Function split 

Source
fn split(key: &[u8]) -> Option<Result<(OwnedRoomId, OwnedUserId), KeyBuf>>
Expand description

Splits a key into its room and user, by hand.

A key the joined keys check reports gives None, and one whose ids do not parse gives the key back.