Struct ruma_identifiers::ServerName [−][src]
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 Hash for ServerName[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for ServerName[src]
fn cmp(&self, other: &ServerName) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<&'_ str> for ServerName[src]
impl PartialEq<ServerName> for ServerName[src]
fn eq(&self, other: &ServerName) -> bool[src]
fn ne(&self, other: &ServerName) -> bool[src]
impl PartialEq<String> for ServerName[src]
impl PartialEq<str> for ServerName[src]
impl PartialOrd<ServerName> for ServerName[src]
fn partial_cmp(&self, other: &ServerName) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Serialize for ServerName[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
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.