pub struct FileHeaderBuilder { /* private fields */ }Expand description
A convenience struct for building a FileHeader using a builder pattern.
Implementations§
Source§impl FileHeaderBuilder
impl FileHeaderBuilder
pub fn with_compression_level(&mut self, compression_level: usize) -> &mut Self
pub fn with_optional_compression_level( &mut self, compression_level: Option<usize>, ) -> &mut Self
pub fn with_block_size(&mut self, block_size: usize) -> &mut Self
pub fn with_optional_block_size( &mut self, block_size: Option<usize>, ) -> &mut Self
pub fn is_paired(&mut self, is_paired: bool) -> &mut Self
pub fn with_flags(&mut self, with_flags: bool) -> &mut Self
pub fn with_headers(&mut self, with_headers: bool) -> &mut Self
pub fn with_qualities(&mut self, with_qualities: bool) -> &mut Self
pub fn build(&self) -> FileHeader
Trait Implementations§
Source§impl Default for FileHeaderBuilder
impl Default for FileHeaderBuilder
Source§fn default() -> FileHeaderBuilder
fn default() -> FileHeaderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileHeaderBuilder
impl RefUnwindSafe for FileHeaderBuilder
impl Send for FileHeaderBuilder
impl Sync for FileHeaderBuilder
impl Unpin for FileHeaderBuilder
impl UnsafeUnpin for FileHeaderBuilder
impl UnwindSafe for FileHeaderBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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