#[non_exhaustive]
pub enum HitObjectParams {
HitCircle,
Slider(SlideParams),
Spinner {
end_time: Decimal,
},
OsuManiaHold {
end_time: Decimal,
},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HitCircle
Slider(SlideParams)
Spinner
Fields
end_time: Decimal
OsuManiaHold
Fields
end_time: Decimal
Trait Implementations
sourceimpl Clone for HitObjectParams
impl Clone for HitObjectParams
sourcefn clone(&self) -> HitObjectParams
fn clone(&self) -> HitObjectParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HitObjectParams
impl Debug for HitObjectParams
sourceimpl Hash for HitObjectParams
impl Hash for HitObjectParams
sourceimpl PartialEq<HitObjectParams> for HitObjectParams
impl PartialEq<HitObjectParams> for HitObjectParams
sourcefn eq(&self, other: &HitObjectParams) -> bool
fn eq(&self, other: &HitObjectParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for HitObjectParams
impl StructuralEq for HitObjectParams
impl StructuralPartialEq for HitObjectParams
Auto Trait Implementations
impl RefUnwindSafe for HitObjectParams
impl Send for HitObjectParams
impl Sync for HitObjectParams
impl Unpin for HitObjectParams
impl UnwindSafe for HitObjectParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more