[−][src]Struct osu_db::score::ScoreList
A score database, usually coming from a scores.db
file.
Fields
version: u32
beatmaps: Vec<BeatmapScores>
Implementations
impl ScoreList
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<ScoreList, Error>
[src]
Read a score database from its raw bytes.
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<ScoreList, Error>
[src]
Read a score database from a scores.db
file.
pub fn to_writer<W: Write>(&self, out: W) -> Result<()>
[src]
Write the score database to an arbitrary writer.
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
Similar to to_writer
but writes the scores to a file.
Trait Implementations
impl Clone for ScoreList
[src]
impl Debug for ScoreList
[src]
impl PartialEq<ScoreList> for ScoreList
[src]
impl StructuralPartialEq for ScoreList
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScoreList
impl Send for ScoreList
impl Sync for ScoreList
impl Unpin for ScoreList
impl UnwindSafe for ScoreList
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,