pub enum ChatVolume {
Whisper,
Say,
Shout,
RegionSay,
}Expand description
represents a Second Life chat volume
Variants§
Whisper
whisper (10m)
Say
say (20m, default, a.k.a. chat range)
Shout
shout (100m)
RegionSay
region say (the whole region)
Implementations§
Source§impl ChatVolume
impl ChatVolume
Sourcepub const fn is_whisper(&self) -> bool
pub const fn is_whisper(&self) -> bool
Returns true if the enum is ChatVolume::Whisper otherwise false
Sourcepub const fn is_shout(&self) -> bool
pub const fn is_shout(&self) -> bool
Returns true if the enum is ChatVolume::Shout otherwise false
Sourcepub const fn is_region_say(&self) -> bool
pub const fn is_region_say(&self) -> bool
Returns true if the enum is ChatVolume::RegionSay otherwise false
Source§impl ChatVolume
impl ChatVolume
Sourcepub fn volume_and_message(s: String) -> (Self, String)
pub fn volume_and_message(s: String) -> (Self, String)
identify the chat volume of a message and strip it off the message
Trait Implementations§
Source§impl Clone for ChatVolume
impl Clone for ChatVolume
Source§fn clone(&self) -> ChatVolume
fn clone(&self) -> ChatVolume
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatVolume
impl Debug for ChatVolume
Source§impl Ord for ChatVolume
impl Ord for ChatVolume
Source§fn cmp(&self, other: &ChatVolume) -> Ordering
fn cmp(&self, other: &ChatVolume) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChatVolume
impl PartialEq for ChatVolume
Source§impl PartialOrd for ChatVolume
impl PartialOrd for ChatVolume
impl Copy for ChatVolume
impl Eq for ChatVolume
impl StructuralPartialEq for ChatVolume
Auto Trait Implementations§
impl Freeze for ChatVolume
impl RefUnwindSafe for ChatVolume
impl Send for ChatVolume
impl Sync for ChatVolume
impl Unpin for ChatVolume
impl UnwindSafe for ChatVolume
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