Struct cgats::DataFormat
source · pub struct DataFormat { /* private fields */ }
Expand description
Representation of the DATA_FORMAT fields
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl CgatsFmt for DataFormat
impl CgatsFmt for DataFormat
sourcefn cgats_fmt(&self, f: &mut Formatter<'_>) -> Result
fn cgats_fmt(&self, f: &mut Formatter<'_>) -> Result
Format data to a
fmt::Formatter
sourceimpl Clone for DataFormat
impl Clone for DataFormat
sourcefn clone(&self) -> DataFormat
fn clone(&self) -> DataFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DataFormat
impl Debug for DataFormat
sourceimpl Default for DataFormat
impl Default for DataFormat
sourceimpl FromIterator<Field> for DataFormat
impl FromIterator<Field> for DataFormat
sourcefn from_iter<I: IntoIterator<Item = Field>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Field>>(iter: I) -> Self
Creates a value from an iterator. Read more
sourceimpl FromStr for DataFormat
impl FromStr for DataFormat
sourceimpl PartialEq<DataFormat> for DataFormat
impl PartialEq<DataFormat> for DataFormat
sourcefn eq(&self, other: &DataFormat) -> bool
fn eq(&self, other: &DataFormat) -> bool
impl Eq for DataFormat
impl StructuralEq for DataFormat
impl StructuralPartialEq for DataFormat
Auto Trait Implementations
impl RefUnwindSafe for DataFormat
impl Send for DataFormat
impl Sync for DataFormat
impl Unpin for DataFormat
impl UnwindSafe for DataFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more