struct Parser<'a> {
stream: TokenStream<'a, Token<'a>>,
class: Option<WowClass>,
name: Option<String>,
assignments: FastMap<String, String>,
equipment: Vec<Item>,
bag_items: Vec<Item>,
weekly_rewards: Vec<Item>,
loadouts: Vec<Loadout>,
character_info: Option<CharacterInfo>,
loot_spec: Option<String>,
}Fields§
§stream: TokenStream<'a, Token<'a>>§class: Option<WowClass>§name: Option<String>§assignments: FastMap<String, String>§equipment: Vec<Item>§bag_items: Vec<Item>§weekly_rewards: Vec<Item>§loadouts: Vec<Loadout>§character_info: Option<CharacterInfo>§loot_spec: Option<String>Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
fn peek(&self) -> Option<&Token<'a>>
fn advance(&mut self) -> Option<&Token<'a>>
fn skip_newlines(&mut self)
fn skip_to_line_end(&mut self)
fn parse(self) -> Result<Profile, SimcParseError>
fn parse_line(&mut self)
fn parse_assignment(&mut self)
fn parse_assignment_operator(&mut self) -> Option<bool>
fn store_assignment(&mut self, key: &str, value: String, append: bool)
fn parse_string_value(&mut self) -> String
fn parse_value(&mut self) -> String
fn parse_equipment(&mut self, slot_name: &str)
fn parse_kv_pairs(&mut self) -> FastMap<String, String>
fn parse_kv_value(&mut self) -> String
fn build_profile(&self) -> Result<Profile, SimcParseError>
fn get_u32(&self, key: &str) -> Option<u32>
fn get_title_case(&self, key: &str) -> Option<String>
fn parse_professions(&self) -> Vec<Profession>
fn parse_expansion_talents(&self) -> BTreeMap<String, Vec<String>>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more