[−][src]Trait nifti::volume::element::DataElement
Trait type for characterizing a NIfTI data element, implemented for primitive numeric types which are used by the crate to represent voxel values.
Associated Types
type Transform: LinearTransform<Self>
For defining how this element is linearly transformed to another.
Associated Constants
Loading content...Required methods
fn from_raw<R: Read, E>(src: R, endianness: E) -> Result<Self> where
R: Read,
E: Endian,
R: Read,
E: Endian,
Read a single element from the given byte source.
Provided methods
fn from_raw_vec<E>(vec: Vec<u8>, endianness: E) -> Result<Vec<Self>> where
E: Endian,
E: Clone,
E: Endian,
E: Clone,
Transform the given data vector into a vector of data elements.
Implementations on Foreign Types
impl DataElement for u8
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, _: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, _: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for i8
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, _: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, _: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for u16
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for i16
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for u32
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for i32
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF32
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for u64
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF64
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for i64
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaF64
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for f32
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaOriginal
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,
impl DataElement for f64
[src]
const DATA_TYPE: NiftiType
[src]
type Transform = LinearTransformViaOriginal
fn from_raw_vec<E>(vec: Vec<u8>, e: E) -> Result<Vec<Self>> where
E: Endian,
[src]
E: Endian,
fn from_raw<R, E>(src: R, e: E) -> Result<Self> where
R: Read,
E: Endian,
[src]
R: Read,
E: Endian,