Struct ruma_common::OwnedKeyName
source · 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§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.