Struct ruma::ServerName [−][src]
#[repr(transparent)]pub struct ServerName(_);
Expand description
A Matrix-spec compliant server name.
Implementations
impl ServerName
[src]
impl ServerName
[src]Trait Implementations
impl Debug for ServerName
[src]
impl Debug for ServerName
[src]impl Display for ServerName
[src]
impl Display for ServerName
[src]impl<'_> From<&'_ ServerName> for Box<ServerName, Global>
[src]
impl<'_> From<&'_ ServerName> for Box<ServerName, Global>
[src]pub fn from(s: &ServerName) -> Box<ServerName, Global>
[src]
pub fn from(s: &ServerName) -> Box<ServerName, Global>
[src]Performs the conversion.
impl Hash for ServerName
[src]
impl Hash for ServerName
[src]impl Ord for ServerName
[src]
impl Ord for ServerName
[src]impl<'_> PartialEq<&'_ str> for ServerName
[src]
impl<'_> PartialEq<&'_ str> for ServerName
[src]impl PartialEq<ServerName> for ServerName
[src]
impl PartialEq<ServerName> for ServerName
[src]pub fn eq(&self, other: &ServerName) -> bool
[src]
pub fn eq(&self, other: &ServerName) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ServerName) -> bool
[src]
pub fn ne(&self, other: &ServerName) -> bool
[src]This method tests for !=
.
impl PartialEq<String> for ServerName
[src]
impl PartialEq<String> for ServerName
[src]impl PartialEq<str> for ServerName
[src]
impl PartialEq<str> for ServerName
[src]impl PartialOrd<ServerName> for ServerName
[src]
impl PartialOrd<ServerName> for ServerName
[src]pub fn partial_cmp(&self, other: &ServerName) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &ServerName) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for ServerName
[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]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl ToOwned for ServerName
[src]
impl ToOwned for ServerName
[src]type Owned = Box<ServerName, Global>
type Owned = Box<ServerName, Global>
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> <ServerName as ToOwned>::Owned
[src]
pub fn to_owned(&self) -> <ServerName as ToOwned>::Owned
[src]Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a> TryFrom<&'a str> for &'a ServerName
[src]
impl<'a> TryFrom<&'a str> for &'a ServerName
[src]impl Eq for ServerName
[src]
impl StructuralEq for ServerName
[src]
impl StructuralPartialEq for ServerName
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerName
impl Send for ServerName
impl !Sized for ServerName
impl Sync for ServerName
impl Unpin for ServerName
impl UnwindSafe for ServerName
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.