pub struct Integral { /* private fields */ }
Expand description
See Integrate documentation for usage and examples
Implementations§
Source§impl Integral
impl Integral
pub fn vacant(function: Box<dyn Fn(f64) -> f64 + 'static>) -> Self
pub fn set_lower_bound(&mut self, lower_bound: f64) -> &mut Self
pub fn set_upper_bound(&mut self, upper_bound: f64) -> &mut Self
pub fn set_precision(&mut self, precision: usize) -> &mut Self
pub fn evaluate(&self) -> Result<f64, Error>
Auto Trait Implementations§
impl Freeze for Integral
impl !RefUnwindSafe for Integral
impl !Send for Integral
impl !Sync for Integral
impl Unpin for Integral
impl !UnwindSafe for Integral
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more