pub struct ReplayMeta {
pub team_zero: Vec<PlayerInfo>,
pub team_one: Vec<PlayerInfo>,
pub all_headers: Vec<(String, HeaderProp)>,
}Expand description
ReplayMeta struct represents metadata about the replay being processed.
This includes information about the players in the match and all replay headers.
Fields§
§team_zero: Vec<PlayerInfo>A vector of PlayerInfo instances representing the players on team zero.
team_one: Vec<PlayerInfo>A vector of PlayerInfo instances representing the players on team one.
all_headers: Vec<(String, HeaderProp)>A vector of tuples containing the names and properties of all the headers in the replay.
Implementations§
Source§impl ReplayMeta
impl ReplayMeta
Sourcepub fn player_count(&self) -> usize
pub fn player_count(&self) -> usize
Returns the total number of players involved in the game.
Sourcepub fn player_order(&self) -> impl Iterator<Item = &PlayerInfo>
pub fn player_order(&self) -> impl Iterator<Item = &PlayerInfo>
Returns an iterator over the PlayerInfo instances representing the players,
in the order they are listed in the replay file.
Trait Implementations§
Source§impl Clone for ReplayMeta
impl Clone for ReplayMeta
Source§fn clone(&self) -> ReplayMeta
fn clone(&self) -> ReplayMeta
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 ReplayMeta
impl Debug for ReplayMeta
Source§impl PartialEq for ReplayMeta
impl PartialEq for ReplayMeta
Source§impl Serialize for ReplayMeta
impl Serialize for ReplayMeta
impl StructuralPartialEq for ReplayMeta
Auto Trait Implementations§
impl Freeze for ReplayMeta
impl RefUnwindSafe for ReplayMeta
impl Send for ReplayMeta
impl Sync for ReplayMeta
impl Unpin for ReplayMeta
impl UnwindSafe for ReplayMeta
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