pub struct GameexeConfig {
pub entries: Vec<GameexeEntry>,
pub map: BTreeMap<String, String>,
}Fields§
§entries: Vec<GameexeEntry>§map: BTreeMap<String, String>Implementations§
Source§impl GameexeConfig
impl GameexeConfig
pub fn get(&self, key: &str) -> Option<&str>
pub fn get_value(&self, key: &str) -> Option<&str>
pub fn get_entry(&self, key: &str) -> Option<&GameexeEntry>
pub fn get_entries<'a>( &'a self, key: &str, ) -> impl Iterator<Item = &'a GameexeEntry> + 'a
pub fn get_all<'a>(&'a self, key: &str) -> impl Iterator<Item = &'a str> + 'a
pub fn get_unquoted(&self, key: &str) -> Option<&str>
pub fn get_item(&self, key: &str, item: usize) -> Option<&str>
pub fn get_item_unquoted(&self, key: &str, item: usize) -> Option<&str>
pub fn get_i64(&self, key: &str) -> Option<i64>
pub fn get_usize(&self, key: &str) -> Option<usize>
pub fn get_indexed(&self, prefix: &str, index: usize) -> Option<&str>
pub fn get_indexed_value(&self, prefix: &str, index: usize) -> Option<&str>
pub fn get_indexed_unquoted(&self, prefix: &str, index: usize) -> Option<&str>
pub fn get_indexed_item( &self, prefix: &str, index: usize, item: usize, ) -> Option<&str>
pub fn get_indexed_item_unquoted( &self, prefix: &str, index: usize, item: usize, ) -> Option<&str>
pub fn get_indexed_entry( &self, prefix: &str, index: usize, ) -> Option<&GameexeEntry>
pub fn get_indexed_field( &self, prefix: &str, index: usize, field: &str, ) -> Option<&str>
pub fn get_indexed_field_unquoted( &self, prefix: &str, index: usize, field: &str, ) -> Option<&str>
pub fn get_prefix<'a>( &'a self, prefix: &str, ) -> impl Iterator<Item = &'a GameexeEntry> + 'a
pub fn indexed_count(&self, prefix: &str) -> usize
pub fn from_text(text: &str) -> Self
Trait Implementations§
Source§impl Clone for GameexeConfig
impl Clone for GameexeConfig
Source§fn clone(&self) -> GameexeConfig
fn clone(&self) -> GameexeConfig
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 GameexeConfig
impl Debug for GameexeConfig
Source§impl Default for GameexeConfig
impl Default for GameexeConfig
Source§fn default() -> GameexeConfig
fn default() -> GameexeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GameexeConfig
impl RefUnwindSafe for GameexeConfig
impl Send for GameexeConfig
impl Sync for GameexeConfig
impl Unpin for GameexeConfig
impl UnsafeUnpin for GameexeConfig
impl UnwindSafe for GameexeConfig
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