Struct rosu_pp::any::ModsDependent
source · pub struct ModsDependent {
pub value: f32,
pub with_mods: bool,
}
Expand description
Wrapper for beatmap attributes in Difficulty
.
Fields§
§value: f32
Value of the beatmap attribute.
with_mods: bool
Whether value
should be used as is or modified based on mods.
true
means “value already considers mods” i.e. use as is;
false
means modify with mods.
Implementations§
Trait Implementations§
source§impl Clone for ModsDependent
impl Clone for ModsDependent
source§fn clone(&self) -> ModsDependent
fn clone(&self) -> ModsDependent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModsDependent
impl Debug for ModsDependent
source§impl Default for ModsDependent
impl Default for ModsDependent
source§fn default() -> ModsDependent
fn default() -> ModsDependent
Returns the “default value” for a type. Read more
source§impl PartialEq for ModsDependent
impl PartialEq for ModsDependent
source§fn eq(&self, other: &ModsDependent) -> bool
fn eq(&self, other: &ModsDependent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ModsDependent
impl StructuralPartialEq for ModsDependent
Auto Trait Implementations§
impl Freeze for ModsDependent
impl RefUnwindSafe for ModsDependent
impl Send for ModsDependent
impl Sync for ModsDependent
impl Unpin for ModsDependent
impl UnwindSafe for ModsDependent
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