pub struct WinnerInfo {
pub team: Team,
pub tile_indexes: [u8; 3],
pub win_type: WinType,
}Expand description
Winner Info
Fields§
§team: TeamThe winning team
tile_indexes: [u8; 3]The tile_indexes that are part of the win.
Sorted from least to greatest.
win_type: WinTypeThe win type
Implementations§
Source§impl WinnerInfo
impl WinnerInfo
Sourcepub fn start_tile_index(&self) -> u8
pub fn start_tile_index(&self) -> u8
Get the least tile index
Sourcepub fn end_tile_index(&self) -> u8
pub fn end_tile_index(&self) -> u8
Get the highest tile index
Trait Implementations§
Source§impl Clone for WinnerInfo
impl Clone for WinnerInfo
Source§fn clone(&self) -> WinnerInfo
fn clone(&self) -> WinnerInfo
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 WinnerInfo
impl Debug for WinnerInfo
Source§impl Hash for WinnerInfo
impl Hash for WinnerInfo
Source§impl PartialEq for WinnerInfo
impl PartialEq for WinnerInfo
impl Copy for WinnerInfo
impl Eq for WinnerInfo
impl StructuralPartialEq for WinnerInfo
Auto Trait Implementations§
impl Freeze for WinnerInfo
impl RefUnwindSafe for WinnerInfo
impl Send for WinnerInfo
impl Sync for WinnerInfo
impl Unpin for WinnerInfo
impl UnwindSafe for WinnerInfo
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