Struct ruma_identifiers::KeyName[][src]

#[repr(transparent)]pub struct KeyName(_);

A Matrix key identifier.

Key identifiers in Matrix are opaque character sequences of [a-zA-Z_]. This type is provided simply for its semantic value.

Implementations

impl KeyName[src]

pub fn as_str(&self) -> &str[src]

Creates a string slice from this KeyName.

pub fn as_bytes(&self) -> &[u8][src]

Creates a byte slice from this KeyName.

Trait Implementations

impl AsRef<str> for KeyName[src]

impl Debug for KeyName[src]

impl Display for KeyName[src]

impl Eq for KeyName[src]

impl<'a> From<&'a str> for &'a KeyName[src]

impl Hash for KeyName[src]

impl Ord for KeyName[src]

impl PartialEq<&'_ str> for KeyName[src]

impl PartialEq<KeyName> for KeyName[src]

impl PartialEq<String> for KeyName[src]

impl PartialEq<str> for KeyName[src]

impl PartialOrd<KeyName> for KeyName[src]

impl Serialize for KeyName[src]

impl ToOwned for KeyName[src]

type Owned = Box<KeyName>

The resulting type after obtaining ownership.

Auto Trait Implementations

impl RefUnwindSafe for KeyName

impl Send for KeyName

impl !Sized for KeyName

impl Sync for KeyName

impl Unpin for KeyName

impl UnwindSafe for KeyName

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]