[][src]Struct ucsf_nmr::UcsfFile

pub struct UcsfFile {
    pub header: Header,
    pub axis_headers: Vec<AxisHeader>,
    pub data: Vec<f32>,
}

Fields

header: Headeraxis_headers: Vec<AxisHeader>data: Vec<f32>

Methods

impl UcsfFile[src]

pub fn parse(input: &[u8]) -> Result<(&[u8], Self), UcsfError>[src]

pub fn axis_data_points(&self, axis: usize) -> u32[src]

Returns the amount of data points along axis.

pub fn tiles(&self) -> Tiles[src]

Returns an iterator over all tiles in the file.

pub fn axis_tiles(&self) -> Vec<usize>[src]

Returns the amount of tiles along each axis.

pub fn axis_tile_sizes(&self) -> Vec<usize>[src]

Returns the amount of data points in a tile along all axis.

pub fn axis_sizes(&self) -> Vec<usize>[src]

Returns the sizes for all axis.

Can be used together with .data_continous() to use the data with multidimensional array types from other crates.

pub fn data_continous(&self) -> Vec<f32>[src]

Construct a Vec where the data is layed out continously per-axis.

This provides an alternative way to accessing the data in its native tile-layout.

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

Returns the lower and upper bounds of the data.

Trait Implementations

impl Clone for UcsfFile[src]

impl Debug for UcsfFile[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.