[][src]Struct trk_io::Header

pub struct Header {
    pub affine4_to_rasmm: Affine4,
    pub affine_to_rasmm: Affine,
    pub translation: Translation,
    pub nb_streamlines: usize,
    pub scalars_name: Vec<String>,
    pub properties_name: Vec<String>,
    // some fields omitted
}

Fields

affine4_to_rasmm: Affine4affine_to_rasmm: Affinetranslation: Translationnb_streamlines: usizescalars_name: Vec<String>properties_name: Vec<String>

Implementations

impl Header[src]

pub fn from_trk<P: AsRef<Path>>(path: P) -> Result<Header>[src]

Retrieve a trk header, along with its byte order, from a file in the file system.

pub fn raw_header(&self) -> CHeader[src]

Retrieve a copy of the original trk header, as read on disk.

pub fn read(reader: &mut BufReader<File>) -> Result<(Header, Endianness)>[src]

Retrieve a trk header, along with its byte order, from the given BufReader. It is assumed that the reader is currently at the start of the trk header.

pub fn clear_scalars_and_properties(&mut self)[src]

Clear all scalars and properties from self.

pub fn clear_scalars(&mut self)[src]

Clear all scalars from self.

pub fn clear_properties(&mut self)[src]

Clear all properties from self.

pub fn copy_scalars_and_properties(&mut self, rhs: &Self)[src]

Clear all scalars and properties from self and copy scalars and properties from rhs.

pub fn copy_scalars(&mut self, rhs: &Self)[src]

Clear all scalars from self and copy scalars from rhs.

pub fn copy_properties(&mut self, rhs: &Self)[src]

Clear all properties from self and copy properties from rhs.

pub fn add_scalar(&mut self, name: &str) -> Result<()>[src]

pub fn add_property(&mut self, name: &str) -> Result<()>[src]

pub fn write<W: WriteBytesExt>(&self, writer: &mut W) -> Result<()>[src]

Trait Implementations

impl Clone for Header[src]

impl Default for Header[src]

impl PartialEq<Header> for Header[src]

Auto Trait Implementations

impl RefUnwindSafe for Header

impl Send for Header

impl Sync for Header

impl Unpin for Header

impl UnwindSafe for Header

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,