pub struct SortConfigBuilder { /* private fields */ }Expand description
Builder pattern for creating configurations
Implementations§
Source§impl SortConfigBuilder
impl SortConfigBuilder
Sourcepub fn zero_terminated(self) -> Self
pub fn zero_terminated(self) -> Self
Enable zero-terminated lines
Sourcepub fn field_separator(self, separator: char) -> Self
pub fn field_separator(self, separator: char) -> Self
Set field separator
Sourcepub fn output_file(self, file: String) -> Self
pub fn output_file(self, file: String) -> Self
Set output file
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set buffer size
Sourcepub fn build(self) -> SortResult<SortConfig>
pub fn build(self) -> SortResult<SortConfig>
Build the final configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SortConfigBuilder
impl RefUnwindSafe for SortConfigBuilder
impl Send for SortConfigBuilder
impl Sync for SortConfigBuilder
impl Unpin for SortConfigBuilder
impl UnwindSafe for SortConfigBuilder
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