pub struct GenomicSchema {
pub format: FileFormat,
pub columns: Vec<ColumnDef>,
/* private fields */
}Expand description
Schema for a genomic data format
Describes the columns/fields available in a format and their types.
Fields§
§format: FileFormatThe file format this schema describes
columns: Vec<ColumnDef>Columns in this format
Implementations§
Source§impl GenomicSchema
impl GenomicSchema
Sourcepub fn new(format: FileFormat, columns: Vec<ColumnDef>) -> Self
pub fn new(format: FileFormat, columns: Vec<ColumnDef>) -> Self
Create a new schema
Sourcepub fn has_column(&self, name: &str) -> bool
pub fn has_column(&self, name: &str) -> bool
Check if column exists
Sourcepub fn column_names(&self) -> Vec<&str>
pub fn column_names(&self) -> Vec<&str>
Get all column names
Trait Implementations§
Source§impl Clone for GenomicSchema
impl Clone for GenomicSchema
Source§fn clone(&self) -> GenomicSchema
fn clone(&self) -> GenomicSchema
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GenomicSchema
impl RefUnwindSafe for GenomicSchema
impl Send for GenomicSchema
impl Sync for GenomicSchema
impl Unpin for GenomicSchema
impl UnsafeUnpin for GenomicSchema
impl UnwindSafe for GenomicSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more