pub fn localpart_is_backwards_compatible(localpart: &str) -> Result<(), Error>
Expand description
Check whether the Matrix identifier localpart is allowed over federation.
According to the spec, localparts can consist of any legal non-surrogate Unicode code points
except for :
and NUL
(U+0000
).