Struct GeneralSection

Source
pub struct GeneralSection {
Show 15 fields pub audio_filename: String, pub audio_lead_in: i32, pub preview_time: i32, pub countdown: bool, pub sample_set: String, pub stack_leniency: f32, pub countdown_offset: i32, pub skin_preference: String, pub game_mode: GameMode, pub letterbox_in_breaks: bool, pub widescreen_storyboard: bool, pub story_fire_in_front: bool, pub special_style: bool, pub epilepsy_warning: bool, pub use_skin_sprites: bool,
}
Expand description

General properties of a beatmap.

Fields§

§audio_filename: String§audio_lead_in: i32

Is number of milliseconds before the audio file should begin playing. Useful for audio files that begin immediately.

§preview_time: i32

Is the number of milliseconds before the audio file should begin playing when selected in the song selection menu.

§countdown: bool

Whether or not a countdown should occur before the first hit object appears.

§sample_set: String

Specifies which set of hit sounds will be used throughout the beatmap. Unlike the sample_set field in HitObjectExtras, this value is a string.

§stack_leniency: f32§countdown_offset: i32§skin_preference: String§game_mode: GameMode§letterbox_in_breaks: bool§widescreen_storyboard: bool§story_fire_in_front: bool

Whether or not display the storyboard in front of combo fire.

§special_style: bool

Use special Style (N+1 style) for osu!mania.

§epilepsy_warning: bool§use_skin_sprites: bool

Trait Implementations§

Source§

impl Debug for GeneralSection

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for GeneralSection

Source§

fn default() -> Self

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, 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.