pub struct Builder { /* private fields */ }
Expand description
A CRAM data container block content-encoder map builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_core_data_encoder(self, encoder: Option<Encoder>) -> Self
pub fn set_core_data_encoder(self, encoder: Option<Encoder>) -> Self
Sets the core data encoder.
Examples
use noodles_cram::data_container::BlockContentEncoderMap;
let builder = BlockContentEncoderMap::builder().set_core_data_encoder(None);
sourcepub fn set_data_series_encoder(
self,
data_series: DataSeries,
encoder: Option<Encoder>
) -> Self
pub fn set_data_series_encoder( self, data_series: DataSeries, encoder: Option<Encoder> ) -> Self
Sets a data series encoder.
Examples
use noodles_cram::data_container::{
compression_header::data_series_encoding_map::DataSeries,
BlockContentEncoderMap,
};
let builder = BlockContentEncoderMap::builder()
.set_data_series_encoder(DataSeries::BamBitFlags, None);
sourcepub fn set_tag_values_encoder(self, key: Key, encoder: Option<Encoder>) -> Self
pub fn set_tag_values_encoder(self, key: Key, encoder: Option<Encoder>) -> Self
Sets a tag values encoder.
Examples
use noodles_cram::data_container::{
compression_header::preservation_map::tag_ids_dictionary::Key,
BlockContentEncoderMap,
};
use noodles_sam::record::data::field::{tag, Type};
let key = Key::new(tag::ALIGNMENT_HIT_COUNT, Type::UInt8);
let builder = BlockContentEncoderMap::builder()
.set_tag_values_encoder(key, None);
sourcepub fn build(self) -> BlockContentEncoderMap
pub fn build(self) -> BlockContentEncoderMap
Builds a block content-encoder map.
Examples
use noodles_cram::data_container::BlockContentEncoderMap;
let map = BlockContentEncoderMap::builder().build();
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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