Struct rustencils::grid::AxisSetup[][src]

pub struct AxisSetup { /* fields omitted */ }

For consistency, this AxisSetup struct is used as an argument when constructing GridSpecs. It contains the minimum axis value (start: f64), the spacing of the axis points (delta: f64), and the number of axis points including the start value (steps: usize).

Implementations

impl AxisSetup[src]

pub fn new(start: f64, delta: f64, steps: usize) -> Self[src]

Returns an AxisSetup

Arguments

  • start - the minimum axis value
  • delta - the spacing btween axis points
  • steps - the number of axis points including start

Examples

use rustencils::grid::AxisSetup;
let ax = AxisSetup::new(0., 0., 100);
use rustencils::grid::AxisSetup;
let ax = AxisSetup::new(0., 0.1, 0);
use rustencils::grid::AxisSetup;
let ax = AxisSetup::new(0., 0.1, 100);

Trait Implementations

impl Clone for AxisSetup[src]

Auto Trait Implementations

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> 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>,