[][src]Struct diffeq::ode::problem::OdeBuilder

pub struct OdeBuilder<F, Y> where
    F: Fn(f64, &Y) -> Y,
    Y: OdeType
{ /* fields omitted */ }

Methods

impl<F, Y> OdeBuilder<F, Y> where
    F: Fn(f64, &Y) -> Y,
    Y: OdeType
[src]

pub fn fun(self, f: F) -> Self[src]

set the problem function

pub fn init<T: Into<Y>>(self, y0: T) -> Self[src]

set the initial starting point

pub fn tspan(self, tspan: Vec<f64>) -> Self[src]

Set the time span for the problem.

pub fn tspan_linspace(self, from: f64, to: f64, n: usize) -> Self[src]

Creates a new tspan with n items from from to to.

pub fn build(self) -> Result<OdeProblem<F, Y>, OdeError>[src]

Creates a new OdeProblem.

Returns an error if a field is None.

Trait Implementations

impl<F: Clone, Y: Clone> Clone for OdeBuilder<F, Y> where
    F: Fn(f64, &Y) -> Y,
    Y: OdeType
[src]

impl<F: Debug, Y: Debug> Debug for OdeBuilder<F, Y> where
    F: Fn(f64, &Y) -> Y,
    Y: OdeType
[src]

impl<F, Y> Default for OdeBuilder<F, Y> where
    F: Fn(f64, &Y) -> Y,
    Y: OdeType
[src]

Auto Trait Implementations

impl<F, Y> RefUnwindSafe for OdeBuilder<F, Y> where
    F: RefUnwindSafe,
    Y: RefUnwindSafe

impl<F, Y> Send for OdeBuilder<F, Y> where
    F: Send,
    Y: Send

impl<F, Y> Sync for OdeBuilder<F, Y> where
    F: Sync,
    Y: Sync

impl<F, Y> Unpin for OdeBuilder<F, Y> where
    F: Unpin,
    Y: Unpin

impl<F, Y> UnwindSafe for OdeBuilder<F, Y> where
    F: UnwindSafe,
    Y: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,