pub struct ScoreList {
pub version: u32,
pub beatmaps: Vec<BeatmapScores>,
}
Expand description
A score database, usually coming from a scores.db
file.
Fields§
§version: u32
§beatmaps: Vec<BeatmapScores>
Implementations§
Source§impl ScoreList
impl ScoreList
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<ScoreList, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<ScoreList, Error>
Read a score database from its raw bytes.
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<ScoreList, Error>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<ScoreList, Error>
Read a score database from a scores.db
file.
Trait Implementations§
impl StructuralPartialEq for ScoreList
Auto Trait Implementations§
impl Freeze for ScoreList
impl RefUnwindSafe for ScoreList
impl Send for ScoreList
impl Sync for ScoreList
impl Unpin for ScoreList
impl UnwindSafe for ScoreList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more