pub struct RoleMention(/* private fields */);Expand description
Mentions a role: <@&ROLE_ID>. Returned by role_mention.
discord.js counterpart: RoleMention.
Trait Implementations§
Source§impl Clone for RoleMention
impl Clone for RoleMention
impl Copy for RoleMention
Source§impl Debug for RoleMention
impl Debug for RoleMention
Source§impl Display for RoleMention
impl Display for RoleMention
impl Eq for RoleMention
Source§impl Hash for RoleMention
impl Hash for RoleMention
Source§impl PartialEq for RoleMention
impl PartialEq for RoleMention
impl StructuralPartialEq for RoleMention
Auto Trait Implementations§
impl Freeze for RoleMention
impl RefUnwindSafe for RoleMention
impl Send for RoleMention
impl Sync for RoleMention
impl Unpin for RoleMention
impl UnsafeUnpin for RoleMention
impl UnwindSafe for RoleMention
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,
impl<T> ListEntry for Twhere
T: WriteEntry + ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more