pub struct OwnedRoomName { /* private fields */ }
Expand description
Owned variant of RoomName
The wrapper type for this type is variable, by default it’ll use Box
,
but you can change that by setting “--cfg=ruma_identifiers_storage=...
” using
RUSTFLAGS
or .cargo/config.toml
(under [build]
-> rustflags = ["..."]
)
to the following;
ruma_identifiers_storage="Arc"
to useArc
as a wrapper type.
Trait Implementations§
Source§impl AsRef<RoomName> for OwnedRoomName
impl AsRef<RoomName> for OwnedRoomName
Source§impl AsRef<str> for OwnedRoomName
impl AsRef<str> for OwnedRoomName
Source§impl Borrow<RoomName> for OwnedRoomName
impl Borrow<RoomName> for OwnedRoomName
Source§impl Clone for OwnedRoomName
impl Clone for OwnedRoomName
Source§fn clone(&self) -> OwnedRoomName
fn clone(&self) -> OwnedRoomName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedRoomName
impl Debug for OwnedRoomName
Source§impl Deref for OwnedRoomName
impl Deref for OwnedRoomName
Source§impl<'de> Deserialize<'de> for OwnedRoomName
impl<'de> Deserialize<'de> for OwnedRoomName
Source§fn deserialize<D>(
deserializer: D,
) -> Result<OwnedRoomName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<OwnedRoomName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OwnedRoomName
impl Display for OwnedRoomName
Source§impl From<&RoomName> for OwnedRoomName
impl From<&RoomName> for OwnedRoomName
Source§fn from(id: &RoomName) -> OwnedRoomName
fn from(id: &RoomName) -> OwnedRoomName
Converts to this type from the input type.
Source§impl FromStr for OwnedRoomName
impl FromStr for OwnedRoomName
Source§impl Hash for OwnedRoomName
impl Hash for OwnedRoomName
Source§impl Ord for OwnedRoomName
impl Ord for OwnedRoomName
Source§fn cmp(&self, other: &OwnedRoomName) -> Ordering
fn cmp(&self, other: &OwnedRoomName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&RoomName> for OwnedRoomName
impl PartialEq<&RoomName> for OwnedRoomName
Source§impl PartialEq<&str> for OwnedRoomName
impl PartialEq<&str> for OwnedRoomName
Source§impl PartialEq<OwnedRoomName> for &RoomName
impl PartialEq<OwnedRoomName> for &RoomName
Source§impl PartialEq<OwnedRoomName> for &str
impl PartialEq<OwnedRoomName> for &str
Source§impl PartialEq<OwnedRoomName> for RoomName
impl PartialEq<OwnedRoomName> for RoomName
Source§impl PartialEq<OwnedRoomName> for str
impl PartialEq<OwnedRoomName> for str
Source§impl PartialEq<RoomName> for OwnedRoomName
impl PartialEq<RoomName> for OwnedRoomName
Source§impl PartialEq<String> for OwnedRoomName
impl PartialEq<String> for OwnedRoomName
Source§impl PartialEq<str> for OwnedRoomName
impl PartialEq<str> for OwnedRoomName
Source§impl PartialEq for OwnedRoomName
impl PartialEq for OwnedRoomName
Source§impl PartialOrd for OwnedRoomName
impl PartialOrd for OwnedRoomName
Source§impl Serialize for OwnedRoomName
impl Serialize for OwnedRoomName
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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 OwnedRoomName
impl TryFrom<&str> for OwnedRoomName
Source§impl TryFrom<String> for OwnedRoomName
impl TryFrom<String> for OwnedRoomName
impl Eq for OwnedRoomName
Auto Trait Implementations§
impl Freeze for OwnedRoomName
impl RefUnwindSafe for OwnedRoomName
impl Send for OwnedRoomName
impl Sync for OwnedRoomName
impl Unpin for OwnedRoomName
impl UnwindSafe for OwnedRoomName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.