pub struct OwnedKeyName { /* private fields */ }
Expand description
Owned variant of KeyName
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<[u8]> for OwnedKeyName
impl AsRef<[u8]> for OwnedKeyName
Source§impl AsRef<KeyName> for OwnedKeyName
impl AsRef<KeyName> for OwnedKeyName
Source§impl AsRef<str> for OwnedKeyName
impl AsRef<str> for OwnedKeyName
Source§impl Borrow<KeyName> for OwnedKeyName
impl Borrow<KeyName> for OwnedKeyName
Source§impl Clone for OwnedKeyName
impl Clone for OwnedKeyName
Source§impl Debug for OwnedKeyName
impl Debug for OwnedKeyName
Source§impl Deref for OwnedKeyName
impl Deref for OwnedKeyName
Source§impl<'de> Deserialize<'de> for OwnedKeyName
impl<'de> Deserialize<'de> for OwnedKeyName
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OwnedKeyName
impl Display for OwnedKeyName
Source§impl From<&KeyName> for OwnedKeyName
impl From<&KeyName> for OwnedKeyName
Source§fn from(id: &KeyName) -> OwnedKeyName
fn from(id: &KeyName) -> OwnedKeyName
Converts to this type from the input type.
Source§impl From<&str> for OwnedKeyName
impl From<&str> for OwnedKeyName
Source§impl From<OwnedKeyName> for String
impl From<OwnedKeyName> for String
Source§fn from(id: OwnedKeyName) -> String
fn from(id: OwnedKeyName) -> String
Converts to this type from the input type.
Source§impl From<String> for OwnedKeyName
impl From<String> for OwnedKeyName
Source§impl Hash for OwnedKeyName
impl Hash for OwnedKeyName
Source§impl Ord for OwnedKeyName
impl Ord for OwnedKeyName
Source§impl PartialEq<&KeyName> for OwnedKeyName
impl PartialEq<&KeyName> for OwnedKeyName
Source§impl PartialEq<&str> for OwnedKeyName
impl PartialEq<&str> for OwnedKeyName
Source§impl PartialEq<KeyName> for OwnedKeyName
impl PartialEq<KeyName> for OwnedKeyName
Source§impl PartialEq<OwnedKeyName> for &KeyName
impl PartialEq<OwnedKeyName> for &KeyName
Source§impl PartialEq<OwnedKeyName> for &str
impl PartialEq<OwnedKeyName> for &str
Source§impl PartialEq<OwnedKeyName> for KeyName
impl PartialEq<OwnedKeyName> for KeyName
Source§impl PartialEq<OwnedKeyName> for String
impl PartialEq<OwnedKeyName> for String
Source§impl PartialEq<OwnedKeyName> for str
impl PartialEq<OwnedKeyName> for str
Source§impl PartialEq<String> for OwnedKeyName
impl PartialEq<String> for OwnedKeyName
Source§impl PartialEq<str> for OwnedKeyName
impl PartialEq<str> for OwnedKeyName
Source§impl PartialEq for OwnedKeyName
impl PartialEq for OwnedKeyName
Source§impl PartialOrd for OwnedKeyName
impl PartialOrd for OwnedKeyName
Source§impl Serialize for OwnedKeyName
impl Serialize for OwnedKeyName
impl Eq for OwnedKeyName
Auto Trait Implementations§
impl Freeze for OwnedKeyName
impl RefUnwindSafe for OwnedKeyName
impl Send for OwnedKeyName
impl Sync for OwnedKeyName
impl Unpin for OwnedKeyName
impl UnwindSafe for OwnedKeyName
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.