Struct tf_demo_parser::demo::parser::ParserState[][src]

pub struct ParserState {
    pub static_baselines: HashMap<ClassId, StaticBaseline, NullHasherBuilder>,
    pub parsed_static_baselines: RefCell<HashMap<ClassId, Vec<SendProp>, NullHasherBuilder>>,
    pub event_definitions: Vec<GameEventDefinition>,
    pub string_tables: Vec<StringTableMeta>,
    pub entity_classes: HashMap<EntityId, ClassId, NullHasherBuilder>,
    pub send_tables: Vec<SendTable>,
    pub server_classes: Vec<ServerClass>,
    pub instance_baselines: [HashMap<EntityId, Vec<SendProp>, NullHasherBuilder>; 2],
    pub demo_meta: DemoMeta,
    pub protocol_version: u32,
    // some fields omitted
}

Fields

static_baselines: HashMap<ClassId, StaticBaseline, NullHasherBuilder>parsed_static_baselines: RefCell<HashMap<ClassId, Vec<SendProp>, NullHasherBuilder>>event_definitions: Vec<GameEventDefinition>string_tables: Vec<StringTableMeta>entity_classes: HashMap<EntityId, ClassId, NullHasherBuilder>send_tables: Vec<SendTable>server_classes: Vec<ServerClass>instance_baselines: [HashMap<EntityId, Vec<SendProp>, NullHasherBuilder>; 2]demo_meta: DemoMetaprotocol_version: u32

Implementations

pub fn handle_string_entry(
    &mut self,
    table: &str,
    _index: usize,
    entry: &StringTableEntry<'a>
)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.