[−][src]Struct ucsf_nmr::UcsfFile
Fields
header: Header
axis_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.
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
Auto Trait Implementations
impl RefUnwindSafe for UcsfFile
impl Send for UcsfFile
impl Sync for UcsfFile
impl Unpin for UcsfFile
impl UnwindSafe for UcsfFile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,