Struct cgats::DataFormat
source · pub struct DataFormat { /* private fields */ }
Expand description
Representation of the DATA_FORMAT fields
Implementations§
source§impl DataFormat
impl DataFormat
sourcepub fn color_types(&self) -> Vec<ColorType>
pub fn color_types(&self) -> Vec<ColorType>
Returns a list of ColorType
s based on the contents of the fields
source§impl DataFormat
impl DataFormat
sourcepub fn fields_mut(&mut self) -> impl Iterator<Item = &mut Field>
pub fn fields_mut(&mut self) -> impl Iterator<Item = &mut Field>
Mutable iterator over the Field
s in a DataFormat
sourcepub fn index_by_field(&self, field: &Field) -> Option<usize>
pub fn index_by_field(&self, field: &Field) -> Option<usize>
Returns column index of a given Field
.
Returns None
if the DataFormat
does not contain the Field
.
sourcepub fn iter(&self) -> impl Iterator<Item = &Field>
pub fn iter(&self) -> impl Iterator<Item = &Field>
Returns an iterator over the fields of a DATA_FORMAT
sourcepub fn colorburst() -> Self
pub fn colorburst() -> Self
Implied ColorBurst DataFormat
Trait Implementations§
source§impl CgatsFmt for DataFormat
impl CgatsFmt for DataFormat
source§impl Clone for DataFormat
impl Clone for DataFormat
source§fn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DataFormat
impl Debug for DataFormat
source§impl Default for DataFormat
impl Default for DataFormat
source§impl FromIterator<Field> for DataFormat
impl FromIterator<Field> for DataFormat
source§impl FromStr for DataFormat
impl FromStr for DataFormat
source§impl PartialEq<DataFormat> for DataFormat
impl PartialEq<DataFormat> for DataFormat
source§fn eq(&self, other: &DataFormat) -> bool
fn eq(&self, other: &DataFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.