[−][src]Struct ruma::DeviceId
A Matrix key ID.
Device identifiers in Matrix are completely opaque character sequences. This type is provided simply for its semantic value.
Implementations
impl DeviceId
[src]
pub fn as_str(&self) -> &str
[src]
Creates a string slice from this DeviceId
.
pub fn as_bytes(&self) -> &[u8]ⓘ
[src]
Creates a byte slice from this DeviceId
.
Trait Implementations
impl AsRef<str> for DeviceId
[src]
impl Debug for DeviceId
[src]
impl Display for DeviceId
[src]
impl Eq for DeviceId
[src]
impl<'_> From<&'_ DeviceId> for Box<DeviceId, Global>
[src]
impl<'a> From<&'a str> for &'a DeviceId
[src]
impl Hash for DeviceId
[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 DeviceId
[src]
pub fn cmp(&self, other: &DeviceId) -> 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 DeviceId
[src]
pub fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<DeviceId> for DeviceId
[src]
pub fn eq(&self, other: &DeviceId) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<String> for DeviceId
[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 DeviceId
[src]
pub fn eq(&self, other: &str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<DeviceId> for DeviceId
[src]
pub fn partial_cmp(&self, other: &DeviceId) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for DeviceId
[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,