pub struct TrackertEventIteratorState { /* private fields */ }Expand description
Keeps track of the progress of the iterator through the open MPQ file.
Implementations§
source§impl TrackertEventIteratorState
impl TrackertEventIteratorState
sourcepub fn read_versioned_tracker_event(
&mut self,
protocol_version: u32
) -> Result<TrackerEvent, S2ProtocolError>
pub fn read_versioned_tracker_event( &mut self, protocol_version: u32 ) -> Result<TrackerEvent, S2ProtocolError>
Based on the protocol version, returns the TrackerEvent pair.
sourcepub fn transist_to_next_supported_event(
&mut self,
protocol_version: u32,
sc2_state: &mut SC2ReplayState,
filters: &Option<SC2ReplayFilters>
) -> Option<(SC2EventType, UnitChangeHint)>
pub fn transist_to_next_supported_event( &mut self, protocol_version: u32, sc2_state: &mut SC2ReplayState, filters: &Option<SC2ReplayFilters> ) -> Option<(SC2EventType, UnitChangeHint)>
Attempt to find the next possible supported event. If an event is not “de-versioned”, then it is skipped, thus the internal loop
Trait Implementations§
source§impl Clone for TrackertEventIteratorState
impl Clone for TrackertEventIteratorState
source§fn clone(&self) -> TrackertEventIteratorState
fn clone(&self) -> TrackertEventIteratorState
Returns a copy 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 TrackertEventIteratorState
impl Debug for TrackertEventIteratorState
source§impl Default for TrackertEventIteratorState
impl Default for TrackertEventIteratorState
source§fn default() -> TrackertEventIteratorState
fn default() -> TrackertEventIteratorState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TrackertEventIteratorState
impl<'de> Deserialize<'de> for TrackertEventIteratorState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TrackertEventIteratorState
impl Send for TrackertEventIteratorState
impl Sync for TrackertEventIteratorState
impl Unpin for TrackertEventIteratorState
impl UnwindSafe for TrackertEventIteratorState
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