pub struct HighScoreData {
pub score: i32,
pub users: Vec<String>,
}
Fields§
§score: i32
§users: Vec<String>
Trait Implementations§
source§impl Clone for HighScoreData
impl Clone for HighScoreData
source§fn clone(&self) -> HighScoreData
fn clone(&self) -> HighScoreData
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 HighScoreData
impl Debug for HighScoreData
source§impl Default for HighScoreData
impl Default for HighScoreData
source§fn default() -> HighScoreData
fn default() -> HighScoreData
Returns the “default value” for a type. Read more
source§impl PacketVariable for HighScoreData
impl PacketVariable for HighScoreData
source§impl PartialEq<HighScoreData> for HighScoreData
impl PartialEq<HighScoreData> for HighScoreData
source§fn eq(&self, other: &HighScoreData) -> bool
fn eq(&self, other: &HighScoreData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HighScoreData
Auto Trait Implementations§
impl RefUnwindSafe for HighScoreData
impl Send for HighScoreData
impl Sync for HighScoreData
impl Unpin for HighScoreData
impl UnwindSafe for HighScoreData
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