Struct ruma_common::OwnedDeviceKeyId
source · [−]pub struct OwnedDeviceKeyId { /* private fields */ }
Expand description
Owned variant of DeviceKeyId
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.
Methods from Deref<Target = DeviceKeyId>
Trait Implementations
sourceimpl AsRef<DeviceKeyId> for OwnedDeviceKeyId
impl AsRef<DeviceKeyId> for OwnedDeviceKeyId
sourcefn as_ref(&self) -> &DeviceKeyId
fn as_ref(&self) -> &DeviceKeyId
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for OwnedDeviceKeyId
impl AsRef<str> for OwnedDeviceKeyId
sourceimpl Borrow<DeviceKeyId> for OwnedDeviceKeyId
impl Borrow<DeviceKeyId> for OwnedDeviceKeyId
sourcefn borrow(&self) -> &DeviceKeyId
fn borrow(&self) -> &DeviceKeyId
Immutably borrows from an owned value. Read more
sourceimpl Clone for OwnedDeviceKeyId
impl Clone for OwnedDeviceKeyId
sourceimpl Debug for OwnedDeviceKeyId
impl Debug for OwnedDeviceKeyId
sourceimpl Deref for OwnedDeviceKeyId
impl Deref for OwnedDeviceKeyId
type Target = DeviceKeyId
type Target = DeviceKeyId
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for OwnedDeviceKeyId
impl<'de> Deserialize<'de> for OwnedDeviceKeyId
sourcefn 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
sourceimpl Display for OwnedDeviceKeyId
impl Display for OwnedDeviceKeyId
sourceimpl From<&DeviceKeyId> for OwnedDeviceKeyId
impl From<&DeviceKeyId> for OwnedDeviceKeyId
sourcefn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
fn from(id: &DeviceKeyId) -> OwnedDeviceKeyId
Converts to this type from the input type.
sourceimpl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl From<Arc<DeviceKeyId>> for OwnedDeviceKeyId
sourcefn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(a: Arc<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
sourceimpl From<Box<DeviceKeyId, Global>> for OwnedDeviceKeyId
impl From<Box<DeviceKeyId, Global>> for OwnedDeviceKeyId
sourcefn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
fn from(b: Box<DeviceKeyId>) -> OwnedDeviceKeyId
Converts to this type from the input type.
sourceimpl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Arc<DeviceKeyId>
sourcefn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Arc<DeviceKeyId>
Converts to this type from the input type.
sourceimpl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
impl From<OwnedDeviceKeyId> for Box<DeviceKeyId>
sourcefn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
fn from(a: OwnedDeviceKeyId) -> Box<DeviceKeyId>
Converts to this type from the input type.
sourceimpl FromStr for OwnedDeviceKeyId
impl FromStr for OwnedDeviceKeyId
sourceimpl Hash for OwnedDeviceKeyId
impl Hash for OwnedDeviceKeyId
sourceimpl Ord for OwnedDeviceKeyId
impl Ord for OwnedDeviceKeyId
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<&DeviceKeyId> for OwnedDeviceKeyId
sourcefn eq(&self, other: &&DeviceKeyId) -> bool
fn eq(&self, other: &&DeviceKeyId) -> bool
sourceimpl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
impl PartialEq<Arc<DeviceKeyId>> for OwnedDeviceKeyId
sourcefn eq(&self, other: &Arc<DeviceKeyId>) -> bool
fn eq(&self, other: &Arc<DeviceKeyId>) -> bool
sourceimpl PartialEq<Box<DeviceKeyId, Global>> for OwnedDeviceKeyId
impl PartialEq<Box<DeviceKeyId, Global>> for OwnedDeviceKeyId
sourcefn eq(&self, other: &Box<DeviceKeyId>) -> bool
fn eq(&self, other: &Box<DeviceKeyId>) -> bool
sourceimpl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<DeviceKeyId> for OwnedDeviceKeyId
sourcefn eq(&self, other: &DeviceKeyId) -> bool
fn eq(&self, other: &DeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for &DeviceKeyId
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for &str
impl PartialEq<OwnedDeviceKeyId> for &str
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for Arc<DeviceKeyId>
impl PartialEq<OwnedDeviceKeyId> for Arc<DeviceKeyId>
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for Box<DeviceKeyId>
impl PartialEq<OwnedDeviceKeyId> for Box<DeviceKeyId>
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for DeviceKeyId
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for OwnedDeviceKeyId
impl PartialEq<OwnedDeviceKeyId> for OwnedDeviceKeyId
sourceimpl PartialEq<OwnedDeviceKeyId> for String
impl PartialEq<OwnedDeviceKeyId> for String
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialEq<OwnedDeviceKeyId> for str
impl PartialEq<OwnedDeviceKeyId> for str
sourcefn eq(&self, other: &OwnedDeviceKeyId) -> bool
fn eq(&self, other: &OwnedDeviceKeyId) -> bool
sourceimpl PartialOrd<OwnedDeviceKeyId> for OwnedDeviceKeyId
impl PartialOrd<OwnedDeviceKeyId> for OwnedDeviceKeyId
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for OwnedDeviceKeyId
impl Serialize for OwnedDeviceKeyId
sourceimpl TryFrom<&str> for OwnedDeviceKeyId
impl TryFrom<&str> for OwnedDeviceKeyId
sourceimpl TryFrom<String> for OwnedDeviceKeyId
impl TryFrom<String> for OwnedDeviceKeyId
impl Eq for OwnedDeviceKeyId
Auto Trait Implementations
impl RefUnwindSafe for OwnedDeviceKeyId
impl Send for OwnedDeviceKeyId
impl Sync for OwnedDeviceKeyId
impl Unpin for OwnedDeviceKeyId
impl UnwindSafe for OwnedDeviceKeyId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.