[][src]Struct beatmap_parser::Beatmap

pub struct Beatmap {
    pub info: Info,
    pub difficulties: HashMap<BeatmapCharacteristic, HashMap<DifficultyRank, Difficulty>>,
    pub key: Option<String>,
    pub length: f64,
}

Represents a Beat Saber map

Fields

info: Info

Beatmap info

difficulties: HashMap<BeatmapCharacteristic, HashMap<DifficultyRank, Difficulty>>

Beatmap difficulty sets

key: Option<String>

BeatSaver key

length: f64

Audio file length, in seconds

Methods

impl Beatmap[src]

pub fn from_file_dat(filename: &str) -> Result<Beatmap, Box<dyn Error>>[src]

Returns a new Beatmap instance from an info.dat file

pub fn from_beatsaver_key(key: &str) -> Result<Beatmap, Box<dyn Error>>[src]

Returns a new Beatmap instance from a BeatSaver key

pub fn from_beatsaver_url(url: &str) -> Result<Beatmap, Box<dyn Error>>[src]

Returns a new Beatmap instance from a BeatSaver url

Trait Implementations

impl Debug for Beatmap[src]

Auto Trait Implementations

impl Sync for Beatmap

impl Send for Beatmap

impl Unpin for Beatmap

impl RefUnwindSafe for Beatmap

impl UnwindSafe for Beatmap

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,