[−][src]Struct beatmap_parser::Beatmap
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,