[][src]Struct ucsf_nmr::Tile

pub struct Tile<'a> {
    pub axis_lengths: Vec<usize>,
    pub axis_starts: Vec<usize>,
    pub data: &'a [f32],
}

Fields

axis_lengths: Vec<usize>

Amount of data points along each axis in this tile.

axis_starts: Vec<usize>

Index of first element of axis 1 (in relation to total axis). Index of first element of axis 2 (in relation to total axis). Index of first element of axis 2 (in relation to total axis).

data: &'a [f32]

View into underlying data

Methods

impl<'a> Tile<'a>[src]

pub fn data(&self) -> &[f32][src]

pub fn iter_with_abolute_pos(&self) -> AbsolutePosValIter[src]

Iterate over the values in a tile with their absolute position in the spectrum.

No specific order of the values should be assumes, which is why the position is provided in the iterator

Auto Trait Implementations

impl<'a> RefUnwindSafe for Tile<'a>

impl<'a> Send for Tile<'a>

impl<'a> Sync for Tile<'a>

impl<'a> Unpin for Tile<'a>

impl<'a> UnwindSafe for Tile<'a>

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