pub struct WhisperId(/* private fields */);
Available on crate feature
chat
only.Expand description
A Whisper ID
Implementations§
Source§impl WhisperId
impl WhisperId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newWhisperIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<WhisperIdRef>
pub fn into_boxed_ref(self) -> Box<WhisperIdRef>
Converts this WhisperId
into a Box<WhisperIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 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<'de> Deserialize<'de> for WhisperId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for WhisperId
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<'a> From<&'a WhisperId> for &'a WhisperIdRef
impl<'a> From<&'a WhisperId> for &'a WhisperIdRef
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 From<Box<WhisperIdRef>> for WhisperId
impl From<Box<WhisperIdRef>> for WhisperId
Source§fn from(r: Box<WhisperIdRef>) -> Self
fn from(r: Box<WhisperIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, WhisperIdRef>> for WhisperId
impl<'a> From<Cow<'a, WhisperIdRef>> for WhisperId
Source§fn from(r: Cow<'a, WhisperIdRef>) -> Self
fn from(r: Cow<'a, WhisperIdRef>) -> Self
Converts to this type from the input type.
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 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 WhisperId
impl Ord for WhisperId
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 PartialOrd for WhisperId
impl PartialOrd for WhisperId
impl Eq for WhisperId
impl StructuralPartialEq for WhisperId
Auto Trait Implementations§
impl Freeze for WhisperId
impl RefUnwindSafe for WhisperId
impl Send for WhisperId
impl Sync for WhisperId
impl Unpin for WhisperId
impl UnwindSafe for WhisperId
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
)