pub struct BEDSchemaBuilder { /* private fields */ }Implementations§
Source§impl BEDSchemaBuilder
impl BEDSchemaBuilder
pub fn new(file_fields: Vec<Field>, partition_fields: Vec<Field>) -> Self
pub fn add_partition_fields(&mut self, fields: Vec<Field>)
Sourcepub fn build(self) -> TableSchema
pub fn build(self) -> TableSchema
Returns the schema and the projection indexes for the file’s schema
Sourcepub fn with_n_fields(n_fields: usize) -> ExonBEDResult<Self>
pub fn with_n_fields(n_fields: usize) -> ExonBEDResult<Self>
From number of fields, create a schema with default fields
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BEDSchemaBuilder
impl RefUnwindSafe for BEDSchemaBuilder
impl Send for BEDSchemaBuilder
impl Sync for BEDSchemaBuilder
impl Unpin for BEDSchemaBuilder
impl UnwindSafe for BEDSchemaBuilder
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> 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