Struct OsuBeatmap

Source
pub struct OsuBeatmap {
Show 39 fields pub original_file_name: String, pub is_valid: bool, pub peppy_file_format: String, pub audio_file_name: String, pub audio_lead_in: i32, pub preview_time: i32, pub countdown: i32, pub sample_set: String, pub stack_leniency: f32, pub mode: i32, pub letterbox_in_breaks: i32, pub special_style: i32, pub widescreen_storyboard: i32, pub bookmarks: String, pub distance_spacing: f32, pub beat_divisor: i32, pub grid_size: i32, pub timeline_zoom: i32, pub title: String, pub title_unicode: String, pub artist: String, pub artist_unicode: String, pub creator: String, pub version: String, pub source: String, pub tags: String, pub beatmap_id: i32, pub beatmap_set_id: i32, pub hp_drain_rate: f32, pub key_count: i32, pub overall_difficulty: f32, pub approach_rate: f32, pub slider_multiplier: f32, pub slider_tick_rate: f32, pub background: String, pub sound_effects: Vec<OsuSampleInfo>, pub timing_points: Vec<OsuTimingPoint>, pub hit_objects: Vec<OsuHitObject>, pub custom_audio_samples: Vec<String>,
}

Fields§

§original_file_name: String§is_valid: bool§peppy_file_format: String§audio_file_name: String§audio_lead_in: i32§preview_time: i32§countdown: i32§sample_set: String§stack_leniency: f32§mode: i32§letterbox_in_breaks: i32§special_style: i32§widescreen_storyboard: i32§bookmarks: String§distance_spacing: f32§beat_divisor: i32§grid_size: i32§timeline_zoom: i32§title: String§title_unicode: String§artist: String§artist_unicode: String§creator: String§version: String§source: String§tags: String§beatmap_id: i32§beatmap_set_id: i32§hp_drain_rate: f32§key_count: i32§overall_difficulty: f32§approach_rate: f32§slider_multiplier: f32§slider_tick_rate: f32§background: String§sound_effects: Vec<OsuSampleInfo>§timing_points: Vec<OsuTimingPoint>§hit_objects: Vec<OsuHitObject>§custom_audio_samples: Vec<String>

Implementations§

Source§

impl OsuBeatmap

Source

pub fn from_path(file_path: &str) -> Self

Source

pub fn to_qua(self) -> QuaverMap

Trait Implementations§

Source§

impl Default for OsuBeatmap

Source§

fn default() -> OsuBeatmap

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
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.