Skip to main content

ChartDefaults

Struct ChartDefaults 

Source
#[non_exhaustive]
pub struct ChartDefaults;

Implementations§

Source§

impl ChartDefaults

Source

pub const TITLE: &'static str = "Unknown Title"

Source

pub const ALT_TITLE: &'static str = "Unknown Title"

Source

pub const ARTIST: &'static str = "Unknown Artist"

Source

pub const ALT_ARTIST: &'static str = "Unknown Artist"

Source

pub const CREATOR: &'static str = "Unknown Creator"

Source

pub const GENRE: &'static str = "Unknown Genre"

Source

pub const SOURCE: &'static str = "Unknown Source"

Source

pub const TAGS: Vec<String>

Source

pub const BPM: &'static f32

Source

pub const DIFFICULTY_NAME: &'static str = "Unknown Difficulty"

Source

pub const BG_PATH: &'static str = "Unknown Background Path"

Source

pub const SONG_PATH: &'static str = "Unknown Song File Path"

Source

pub const AUDIO_OFFSET: &'static i32

Source

pub const PREVIEW_TIME: &'static i32

Source

pub const OVERALL_DIFFICULTY: &'static f32

Source

pub const KEY_COUNT: &'static u8

Source

pub const RAW_NOTES: &'static str = "No Note Data"

Source

pub const RAW_BPMS: &'static str = "No BPM Data"

Source

pub const RAW_STOPS: &'static str = "No STOPS Data"

Source

pub const RAW_SV: &'static str = "No SV Data"

Source

pub const HITSOUND: [u8; 4]

Source

pub const VARIANTS: &'static [(&'static str, &'static dyn Any)]

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.