mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-15 23:08:55 +00:00
Implement conversion between mods
This commit is contained in:
parent
9aab6e11ec
commit
f8cbd7ceb0
1 changed files with 6 additions and 0 deletions
|
@ -128,3 +128,9 @@ impl fmt::Display for Mods {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Mods> for oppai_rs::Mods {
|
||||
fn from(m: Mods) -> Self {
|
||||
oppai_rs::Mods::from_bits_truncate(m.bits() as i32)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue