pub enum MinaCalcError {
CalculatorCreationFailed,
NoNotesProvided,
InvalidMusicRate(f32),
InvalidScoreGoal(f32),
CalculationFailed(String),
InvalidNoteData(String),
MemoryAllocationFailed,
InternalError(String),
OsuError(OsuError),
}Expand description
Custom error types for minacalc operations
Variants§
CalculatorCreationFailed
Calculator creation failed
NoNotesProvided
No notes provided for calculation
InvalidMusicRate(f32)
Invalid music rate (must be positive)
InvalidScoreGoal(f32)
Invalid score goal (must be between 0 and 100)
CalculationFailed(String)
Calculation failed
InvalidNoteData(String)
Invalid note data
MemoryAllocationFailed
Memory allocation failed
InternalError(String)
Internal C++ error
OsuError(OsuError)
Osu! related error
Trait Implementations§
Source§impl Debug for MinaCalcError
impl Debug for MinaCalcError
Source§impl Display for MinaCalcError
impl Display for MinaCalcError
Source§impl Error for MinaCalcError
impl Error for MinaCalcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MinaCalcError
impl RefUnwindSafe for MinaCalcError
impl Send for MinaCalcError
impl Sync for MinaCalcError
impl Unpin for MinaCalcError
impl UnwindSafe for MinaCalcError
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