Struct Replay

Source
pub struct Replay {
Show 21 fields pub gamemode: Gamemode, pub version: u32, pub beatmap_md5: Option<String>, pub username: Option<String>, pub replay_md5: Option<String>, pub n300: u16, pub n100: u16, pub n50: u16, pub geki: u16, pub katu: u16, pub misses: u16, pub score: u32, pub combo: u16, pub perfect: u8, pub mods: u32, pub life_bar: Option<String>, pub time_stamp: usize, pub replay_length: u32, pub replay_data: Vec<u8>, pub score_id: usize, pub mod_info: Option<f64>,
}

Fields§

§gamemode: Gamemode§version: u32§beatmap_md5: Option<String>§username: Option<String>§replay_md5: Option<String>§n300: u16§n100: u16§n50: u16§geki: u16§katu: u16§misses: u16§score: u32§combo: u16§perfect: u8§mods: u32§life_bar: Option<String>§time_stamp: usize§replay_length: u32§replay_data: Vec<u8>§score_id: usize§mod_info: Option<f64>

Implementations§

Source§

impl Replay

Source

pub fn read(path: &str) -> Result<Self, ReplayError>

Trait Implementations§

Source§

impl Debug for Replay

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Replay

§

impl RefUnwindSafe for Replay

§

impl Send for Replay

§

impl Sync for Replay

§

impl Unpin for Replay

§

impl UnwindSafe for Replay

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.