acter::api

Type Alias RoomId

Source
pub type RoomId = OwnedRoomId;

Aliased Type§

struct RoomId { /* private fields */ }

Trait Implementations

Source§

impl AsRef<[u8]> for OwnedRoomId

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RoomId> for OwnedRoomId

Source§

fn as_ref(&self) -> &RoomId

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<str> for OwnedRoomId

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<RoomId> for OwnedRoomId

Source§

fn borrow(&self) -> &RoomId

Immutably borrows from an owned value. Read more
Source§

impl Clone for OwnedRoomId

Source§

fn clone(&self) -> OwnedRoomId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OwnedRoomId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OwnedRoomId

Source§

fn deserialize<D>( deserializer: D, ) -> Result<OwnedRoomId, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for OwnedRoomId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<&RoomId> for OwnedRoomId

Source§

fn from(id: &RoomId) -> OwnedRoomId

Converts to this type from the input type.
Source§

impl From<Arc<RoomId>> for OwnedRoomId

Source§

fn from(a: Arc<RoomId>) -> OwnedRoomId

Converts to this type from the input type.
Source§

impl From<Box<RoomId>> for OwnedRoomId

Source§

fn from(b: Box<RoomId>) -> OwnedRoomId

Converts to this type from the input type.
Source§

impl FromStr for OwnedRoomId

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<OwnedRoomId, <OwnedRoomId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for OwnedRoomId

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for OwnedRoomId

Source§

fn cmp(&self, other: &OwnedRoomId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<&RoomId> for OwnedRoomId

Source§

fn eq(&self, other: &&RoomId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<&str> for OwnedRoomId

Source§

fn eq(&self, other: &&str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Arc<RoomId>> for OwnedRoomId

Source§

fn eq(&self, other: &Arc<RoomId>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Box<RoomId>> for OwnedRoomId

Source§

fn eq(&self, other: &Box<RoomId>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RoomId> for OwnedRoomId

Source§

fn eq(&self, other: &RoomId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<String> for OwnedRoomId

Source§

fn eq(&self, other: &String) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<str> for OwnedRoomId

Source§

fn eq(&self, other: &str) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for OwnedRoomId

Source§

fn eq(&self, other: &OwnedRoomId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for OwnedRoomId

Source§

fn partial_cmp(&self, other: &OwnedRoomId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for OwnedRoomId

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&str> for OwnedRoomId

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from( s: &str, ) -> Result<OwnedRoomId, <OwnedRoomId as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl TryFrom<OwnedRoomOrAliasId> for OwnedRoomId

Source§

type Error = OwnedRoomAliasId

The type returned in the event of a conversion error.
Source§

fn try_from(id: OwnedRoomOrAliasId) -> Result<OwnedRoomId, OwnedRoomAliasId>

Performs the conversion.
Source§

impl TryFrom<String> for OwnedRoomId

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from( s: String, ) -> Result<OwnedRoomId, <OwnedRoomId as TryFrom<String>>::Error>

Performs the conversion.
Source§

impl Deref for OwnedRoomId

Source§

type Target = RoomId

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<OwnedRoomId as Deref>::Target

Dereferences the value.
Source§

impl Eq for OwnedRoomId