Struct ruma_common::OwnedVoipId
source · [−]pub struct OwnedVoipId { /* private fields */ }
Expand description
Owned variant of VoipId
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 = VoipId>
Trait Implementations
sourceimpl AsRef<VoipId> for OwnedVoipId
impl AsRef<VoipId> for OwnedVoipId
sourceimpl AsRef<str> for OwnedVoipId
impl AsRef<str> for OwnedVoipId
sourceimpl Borrow<VoipId> for OwnedVoipId
impl Borrow<VoipId> for OwnedVoipId
sourceimpl Clone for OwnedVoipId
impl Clone for OwnedVoipId
sourceimpl Debug for OwnedVoipId
impl Debug for OwnedVoipId
sourceimpl Deref for OwnedVoipId
impl Deref for OwnedVoipId
sourceimpl<'de> Deserialize<'de> for OwnedVoipId
impl<'de> Deserialize<'de> for OwnedVoipId
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 OwnedVoipId
impl Display for OwnedVoipId
sourceimpl From<&VoipId> for OwnedVoipId
impl From<&VoipId> for OwnedVoipId
sourcefn from(id: &VoipId) -> OwnedVoipId
fn from(id: &VoipId) -> OwnedVoipId
Converts to this type from the input type.
sourceimpl From<&str> for OwnedVoipId
impl From<&str> for OwnedVoipId
sourceimpl From<Arc<VoipId>> for OwnedVoipId
impl From<Arc<VoipId>> for OwnedVoipId
sourcefn from(a: Arc<VoipId>) -> OwnedVoipId
fn from(a: Arc<VoipId>) -> OwnedVoipId
Converts to this type from the input type.
sourceimpl From<Box<VoipId, Global>> for OwnedVoipId
impl From<Box<VoipId, Global>> for OwnedVoipId
sourcefn from(b: Box<VoipId>) -> OwnedVoipId
fn from(b: Box<VoipId>) -> OwnedVoipId
Converts to this type from the input type.
sourceimpl From<OwnedVoipId> for Arc<VoipId>
impl From<OwnedVoipId> for Arc<VoipId>
sourcefn from(a: OwnedVoipId) -> Arc<VoipId>
fn from(a: OwnedVoipId) -> Arc<VoipId>
Converts to this type from the input type.
sourceimpl From<OwnedVoipId> for Box<VoipId>
impl From<OwnedVoipId> for Box<VoipId>
sourcefn from(a: OwnedVoipId) -> Box<VoipId>
fn from(a: OwnedVoipId) -> Box<VoipId>
Converts to this type from the input type.
sourceimpl From<String> for OwnedVoipId
impl From<String> for OwnedVoipId
sourceimpl Hash for OwnedVoipId
impl Hash for OwnedVoipId
sourceimpl Ord for OwnedVoipId
impl Ord for OwnedVoipId
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<Box<VoipId, Global>> for OwnedVoipId
impl PartialEq<Box<VoipId, Global>> for OwnedVoipId
sourceimpl PartialEq<OwnedVoipId> for &VoipId
impl PartialEq<OwnedVoipId> for &VoipId
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for &str
impl PartialEq<OwnedVoipId> for &str
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for Arc<VoipId>
impl PartialEq<OwnedVoipId> for Arc<VoipId>
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for Box<VoipId>
impl PartialEq<OwnedVoipId> for Box<VoipId>
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for OwnedVoipId
impl PartialEq<OwnedVoipId> for OwnedVoipId
sourceimpl PartialEq<OwnedVoipId> for String
impl PartialEq<OwnedVoipId> for String
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for VoipId
impl PartialEq<OwnedVoipId> for VoipId
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialEq<OwnedVoipId> for str
impl PartialEq<OwnedVoipId> for str
sourcefn eq(&self, other: &OwnedVoipId) -> bool
fn eq(&self, other: &OwnedVoipId) -> bool
sourceimpl PartialOrd<OwnedVoipId> for OwnedVoipId
impl PartialOrd<OwnedVoipId> for OwnedVoipId
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 OwnedVoipId
impl Serialize for OwnedVoipId
impl Eq for OwnedVoipId
Auto Trait Implementations
impl RefUnwindSafe for OwnedVoipId
impl Send for OwnedVoipId
impl Sync for OwnedVoipId
impl Unpin for OwnedVoipId
impl UnwindSafe for OwnedVoipId
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.