cleanup
This commit is contained in:
@@ -16,9 +16,11 @@ use std::{
|
||||
};
|
||||
|
||||
/// Represents the possible variations of Riemann Sums
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
|
||||
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default)]
|
||||
pub enum Riemann {
|
||||
#[default]
|
||||
Left,
|
||||
|
||||
Middle,
|
||||
Right,
|
||||
}
|
||||
@@ -27,10 +29,6 @@ impl fmt::Display for Riemann {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:?}", self) }
|
||||
}
|
||||
|
||||
impl const Default for Riemann {
|
||||
fn default() -> Riemann { Riemann::Left }
|
||||
}
|
||||
|
||||
/// `FunctionEntry` is a function that can calculate values, integrals, derivatives, etc etc
|
||||
#[derive(Clone)]
|
||||
pub struct FunctionEntry {
|
||||
|
||||
Reference in New Issue
Block a user