pub struct Statistic {
pub kind: StatisticCategory,
pub value: VarInt,
}
Fields§
§kind: StatisticCategory
§value: VarInt
Trait Implementations§
Source§impl Deserialize for Statistic
impl Deserialize for Statistic
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(StatisticCategory, VarInt)> for Statistic
impl From<(StatisticCategory, VarInt)> for Statistic
Source§fn from(other: (StatisticCategory, VarInt)) -> Self
fn from(other: (StatisticCategory, VarInt)) -> Self
Converts to this type from the input type.
Source§impl Serialize for Statistic
impl Serialize for Statistic
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for Statistic
Auto Trait Implementations§
impl Freeze for Statistic
impl RefUnwindSafe for Statistic
impl Send for Statistic
impl Sync for Statistic
impl Unpin for Statistic
impl UnwindSafe for Statistic
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