[−][src]Struct trk_io::Header
Fields
affine4_to_rasmm: Affine4
affine_to_rasmm: Affine
translation: Translation
nb_streamlines: usize
scalars_name: Vec<String>
properties_name: Vec<String>
Methods
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
Auto Trait Implementations
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
impl RefUnwindSafe for Header
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,