[][src]Struct ucsf_nmr::Tile

pub struct Tile<'a> {
    pub axis_1_len: usize,
    pub axis_2_len: usize,
    pub axis_1_start: usize,
    pub axis_2_start: usize,
    pub data: &'a [f32],
}

Fields

axis_1_len: usize

Amount of data points along axis 1 in this tile.

axis_2_len: usize

Amount of data points along axis 2 in this tile.

axis_1_start: usize

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

axis_2_start: usize

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.