osu_rs

Struct General

Source
pub struct General<'a> {
Show 20 fields pub audio_filename: Cow<'a, str>, pub audio_lead_in: i32, pub audio_hash: Cow<'a, str>, pub preview_time: i32, pub countdown: Countdown, pub sample_set: SampleSet, pub stack_leniency: f32, pub mode: GameMode, pub letterbox_in_breaks: bool, pub story_fire_in_front: bool, pub use_skin_sprites: bool, pub always_show_playfield: bool, pub custom_samples: bool, pub overlay_position: OverlayPosition, pub skin_preference: Cow<'a, str>, pub epilepsy_warning: bool, pub countdown_offset: i32, pub special_style: bool, pub widescreen_storyboard: bool, pub samples_match_playback_rate: bool,
}
Expand description

General section

Fields§

§audio_filename: Cow<'a, str>

Audio file name

§audio_lead_in: i32

Milliseconds of silence before the audio starts playing

§audio_hash: Cow<'a, str>

md5 hash of the audio file. Deprecated and never serialized

§preview_time: i32

Preview time

§countdown: Countdown

Countdown type

§sample_set: SampleSet§stack_leniency: f32§mode: GameMode§letterbox_in_breaks: bool§story_fire_in_front: bool§use_skin_sprites: bool§always_show_playfield: bool§custom_samples: bool§overlay_position: OverlayPosition§skin_preference: Cow<'a, str>§epilepsy_warning: bool§countdown_offset: i32§special_style: bool§widescreen_storyboard: bool§samples_match_playback_rate: bool

Trait Implementations§

Source§

impl<'a> BeatmapSection<'a> for General<'a>

Source§

fn consume_line( &mut self, ctx: &Context, line: impl StaticCow<'a>, ) -> Result<Option<Section>, ParseError>

Source§

impl<'a> Clone for General<'a>

Source§

fn clone(&self) -> General<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for General<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for General<'a>

§

impl<'a> RefUnwindSafe for General<'a>

§

impl<'a> Send for General<'a>

§

impl<'a> Sync for General<'a>

§

impl<'a> Unpin for General<'a>

§

impl<'a> UnwindSafe for General<'a>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.