pub struct CommonConstants { /* private fields */ }Expand description
Constants parsed from gui/data/constants/common.xml.
Implementations§
Source§impl CommonConstants
impl CommonConstants
pub fn plane_ammo_type(&self, id: i32) -> Option<&str>
pub fn torpedo_type(&self, id: i32) -> Option<&str>
pub fn consumable_type(&self, id: i32) -> Option<&str>
pub fn plane_ammo_types(&self) -> &HashMap<i32, Cow<'static, str>>
pub fn torpedo_types(&self) -> &HashMap<i32, Cow<'static, str>>
pub fn consumable_types(&self) -> &HashMap<i32, Cow<'static, str>>
pub fn plane_ammo_types_mut(&mut self) -> &mut HashMap<i32, Cow<'static, str>>
pub fn torpedo_types_mut(&mut self) -> &mut HashMap<i32, Cow<'static, str>>
pub fn consumable_types_mut(&mut self) -> &mut HashMap<i32, Cow<'static, str>>
pub fn battle_stage(&self, id: i32) -> Option<&BattleStage>
pub fn battle_stages(&self) -> &HashMap<i32, BattleStage>
pub fn battle_stages_mut(&mut self) -> &mut HashMap<i32, BattleStage>
Trait Implementations§
Source§impl Clone for CommonConstants
impl Clone for CommonConstants
Source§fn clone(&self) -> CommonConstants
fn clone(&self) -> CommonConstants
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 CommonConstants
impl RefUnwindSafe for CommonConstants
impl Send for CommonConstants
impl Sync for CommonConstants
impl Unpin for CommonConstants
impl UnsafeUnpin for CommonConstants
impl UnwindSafe for CommonConstants
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