pub struct ChannelConstants { /* private fields */ }Expand description
Constants parsed from gui/data/constants/channel.xml.
Implementations§
Source§impl ChannelConstants
impl ChannelConstants
pub fn battle_chat_channel_type(&self, id: i32) -> Option<&str>
pub fn channel_type_ident(&self, id: i32) -> Option<&str>
pub fn battle_chat_channel_types(&self) -> &HashMap<i32, Cow<'static, str>>
pub fn channel_type_idents(&self) -> &HashMap<i32, Cow<'static, str>>
pub fn battle_chat_channel_types_mut( &mut self, ) -> &mut HashMap<i32, Cow<'static, str>>
pub fn channel_type_idents_mut( &mut self, ) -> &mut HashMap<i32, Cow<'static, str>>
Trait Implementations§
Source§impl Clone for ChannelConstants
impl Clone for ChannelConstants
Source§fn clone(&self) -> ChannelConstants
fn clone(&self) -> ChannelConstants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChannelConstants
impl RefUnwindSafe for ChannelConstants
impl Send for ChannelConstants
impl Sync for ChannelConstants
impl Unpin for ChannelConstants
impl UnsafeUnpin for ChannelConstants
impl UnwindSafe for ChannelConstants
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