[−][src]Struct ruma::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, Global>
[src]
pub fn from(s: &ServerName) -> Box<ServerName, Global>
[src]
impl Hash for ServerName
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ServerName
[src]
pub fn cmp(&self, other: &ServerName) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'_> PartialEq<&'_ str> for ServerName
[src]
pub fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<ServerName> for ServerName
[src]
pub fn eq(&self, other: &ServerName) -> bool
[src]
pub fn ne(&self, other: &ServerName) -> bool
[src]
impl PartialEq<String> for ServerName
[src]
pub fn eq(&self, other: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for ServerName
[src]
pub fn eq(&self, other: &str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<ServerName> for ServerName
[src]
pub fn partial_cmp(&self, other: &ServerName) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ServerName) -> bool
[src]
pub fn le(&self, other: &ServerName) -> bool
[src]
pub fn gt(&self, other: &ServerName) -> bool
[src]
pub fn ge(&self, other: &ServerName) -> bool
[src]
impl Serialize for ServerName
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for ServerName
[src]
impl StructuralPartialEq for ServerName
[src]
impl ToOwned for ServerName
[src]
type Owned = Box<ServerName, Global>
The resulting type after obtaining ownership.