Struct IntegrationInterval
pub struct IntegrationInterval { /* private fields */ }Expand description
A finite interval for definite integration.
Implementations§
§impl IntegrationInterval
impl IntegrationInterval
pub const fn new(start: f64, end: f64) -> IntegrationInterval
pub const fn new(start: f64, end: f64) -> IntegrationInterval
Creates an interval from start to end.
pub fn try_new(
start: f64,
end: f64,
) -> Result<IntegrationInterval, CalculusError>
pub fn try_new( start: f64, end: f64, ) -> Result<IntegrationInterval, CalculusError>
Creates an interval from finite bounds.
§Errors
Returns CalculusError::NonFiniteBound when start or end is not
finite.
pub fn validate(self) -> Result<IntegrationInterval, CalculusError>
pub fn validate(self) -> Result<IntegrationInterval, CalculusError>
Validates that the stored bounds are finite.
§Errors
Returns the same error variants as Self::try_new.
Trait Implementations§
§impl Clone for IntegrationInterval
impl Clone for IntegrationInterval
§fn clone(&self) -> IntegrationInterval
fn clone(&self) -> IntegrationInterval
Returns a duplicate 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 more§impl Debug for IntegrationInterval
impl Debug for IntegrationInterval
§impl PartialEq for IntegrationInterval
impl PartialEq for IntegrationInterval
impl Copy for IntegrationInterval
impl StructuralPartialEq for IntegrationInterval
Auto Trait Implementations§
impl Freeze for IntegrationInterval
impl RefUnwindSafe for IntegrationInterval
impl Send for IntegrationInterval
impl Sync for IntegrationInterval
impl Unpin for IntegrationInterval
impl UnsafeUnpin for IntegrationInterval
impl UnwindSafe for IntegrationInterval
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