[][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 axis_tiles(&self, axis: usize) -> u32[src]

Returns the amount of tiles along axis axis.

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

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

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

Returns an iterator over all tiles in the file.

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.