[][src]Struct ruma_identifiers::ServerName

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

A Matrix-spec compliant server name.

Implementations

impl ServerName[src]

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

Creates a string slice from this ServerName.

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

Creates a byte slice from this ServerName.

Trait Implementations

impl AsRef<str> for ServerName[src]

impl Debug for ServerName[src]

impl Display for ServerName[src]

impl Eq for ServerName[src]

impl<'_> From<&'_ ServerName> for Box<ServerName>[src]

impl Hash for ServerName[src]

impl Ord for ServerName[src]

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

impl PartialEq<ServerName> for ServerName[src]

impl PartialEq<ServerName> for str[src]

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

impl PartialEq<ServerName> for String[src]

impl PartialEq<String> for ServerName[src]

impl PartialEq<str> for ServerName[src]

impl PartialOrd<ServerName> for ServerName[src]

impl Serialize for ServerName[src]

impl StructuralEq for ServerName[src]

impl StructuralPartialEq for ServerName[src]

impl ToOwned for ServerName[src]

type Owned = Box<ServerName>

The resulting type after obtaining ownership.

impl<'a> TryFrom<&'a str> for &'a ServerName[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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