pub struct WhisperIdRef(/* private fields */);
Available on crate feature
chat
only.Expand description
A Whisper ID
Implementations§
Source§impl WhisperIdRef
impl WhisperIdRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed WhisperIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed WhisperIdRef
Sourcepub fn into_owned(self: Box<WhisperIdRef>) -> WhisperId
pub fn into_owned(self: Box<WhisperIdRef>) -> WhisperId
Converts a Box<WhisperIdRef>
into a WhisperId
without copying or allocating
Source§impl WhisperIdRef
impl WhisperIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, WhisperIdRef>
pub fn as_cow(&self) -> Cow<'_, WhisperIdRef>
Get a
Cow<'_, WhisperIdRef>
Trait Implementations§
Source§impl AsRef<WhisperIdRef> for WhisperId
impl AsRef<WhisperIdRef> for WhisperId
Source§fn as_ref(&self) -> &WhisperIdRef
fn as_ref(&self) -> &WhisperIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for WhisperIdRef
impl AsRef<str> for WhisperIdRef
Source§impl Borrow<WhisperIdRef> for WhisperId
impl Borrow<WhisperIdRef> for WhisperId
Source§fn borrow(&self) -> &WhisperIdRef
fn borrow(&self) -> &WhisperIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for WhisperIdRef
impl Borrow<str> for WhisperIdRef
Source§impl Debug for WhisperIdRef
impl Debug for WhisperIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a WhisperIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a WhisperIdRef
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for Box<WhisperIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<WhisperIdRef>
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WhisperIdRef
impl Display for WhisperIdRef
Source§impl<'a> From<&'a &'a WhisperIdRef> for Collection<'a, WhisperId>
impl<'a> From<&'a &'a WhisperIdRef> for Collection<'a, WhisperId>
Source§fn from(v: &'a &'a WhisperIdRef) -> Self
fn from(v: &'a &'a WhisperIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, WhisperIdRef>> for &'a WhisperIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, WhisperIdRef>> for &'a WhisperIdRef
Source§fn from(r: &'a Cow<'b, WhisperIdRef>) -> &'a WhisperIdRef
fn from(r: &'a Cow<'b, WhisperIdRef>) -> &'a WhisperIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a WhisperIdRef
impl<'a> From<&'a String> for &'a WhisperIdRef
Source§impl<'a> From<&'a WhisperId> for &'a WhisperIdRef
impl<'a> From<&'a WhisperId> for &'a WhisperIdRef
Source§impl From<&WhisperIdRef> for Arc<WhisperIdRef>
impl From<&WhisperIdRef> for Arc<WhisperIdRef>
Source§fn from(r: &WhisperIdRef) -> Self
fn from(r: &WhisperIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a WhisperIdRef> for Cow<'a, WhisperIdRef>
impl<'a> From<&'a WhisperIdRef> for Cow<'a, WhisperIdRef>
Source§fn from(r: &'a WhisperIdRef) -> Self
fn from(r: &'a WhisperIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&WhisperIdRef> for Rc<WhisperIdRef>
impl From<&WhisperIdRef> for Rc<WhisperIdRef>
Source§fn from(r: &WhisperIdRef) -> Self
fn from(r: &WhisperIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&WhisperIdRef> for WhisperId
impl From<&WhisperIdRef> for WhisperId
Source§fn from(s: &WhisperIdRef) -> Self
fn from(s: &WhisperIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a WhisperIdRef
impl<'a> From<&'a str> for &'a WhisperIdRef
Source§fn from(s: &'a str) -> &'a WhisperIdRef
fn from(s: &'a str) -> &'a WhisperIdRef
Converts to this type from the input type.
Source§impl Hash for WhisperIdRef
impl Hash for WhisperIdRef
Source§impl<'a> IntoCow<'a, WhisperIdRef> for &'a WhisperId
impl<'a> IntoCow<'a, WhisperIdRef> for &'a WhisperId
Source§fn into_cow(self) -> Cow<'a, WhisperIdRef>
fn into_cow(self) -> Cow<'a, WhisperIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, WhisperIdRef> for &'a WhisperIdRef
impl<'a> IntoCow<'a, WhisperIdRef> for &'a WhisperIdRef
Source§fn into_cow(self) -> Cow<'a, WhisperIdRef>
fn into_cow(self) -> Cow<'a, WhisperIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, WhisperIdRef> for WhisperId
impl<'a> IntoCow<'a, WhisperIdRef> for WhisperId
Source§fn into_cow(self) -> Cow<'a, WhisperIdRef>
fn into_cow(self) -> Cow<'a, WhisperIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for WhisperIdRef
impl Ord for WhisperIdRef
Source§impl PartialEq<&WhisperIdRef> for WhisperId
impl PartialEq<&WhisperIdRef> for WhisperId
Source§impl PartialEq<WhisperId> for &WhisperIdRef
impl PartialEq<WhisperId> for &WhisperIdRef
Source§impl PartialEq<WhisperId> for WhisperIdRef
impl PartialEq<WhisperId> for WhisperIdRef
Source§impl PartialEq<WhisperIdRef> for WhisperId
impl PartialEq<WhisperIdRef> for WhisperId
Source§impl PartialEq for WhisperIdRef
impl PartialEq for WhisperIdRef
Source§impl PartialOrd for WhisperIdRef
impl PartialOrd for WhisperIdRef
Source§impl Serialize for WhisperIdRef
Available on crate feature serde
only.
impl Serialize for WhisperIdRef
Available on crate feature
serde
only.