Struct extsort_iter::ExtsortConfig
source · [−]pub struct ExtsortConfig {
pub temp_file_folder: PathBuf,
/* private fields */
}Expand description
The configuration for the external sorting.
Fields
temp_file_folder: PathBufImplementations
sourceimpl ExtsortConfig
impl ExtsortConfig
sourcepub fn create_with_buffer_size_for<T>(sort_buf_bytes: usize) -> Self
pub fn create_with_buffer_size_for<T>(sort_buf_bytes: usize) -> Self
Creates a configuration with a specified sort buffer size in bytes and a sort directory of /tmp
sourcepub fn default_for<T>() -> Self
pub fn default_for<T>() -> Self
Creates a configuration with a sort buffer size of 10M and a sort directory of /tmp
sourcepub fn temp_file_folder(self, folder: impl Into<PathBuf>) -> Self
pub fn temp_file_folder(self, folder: impl Into<PathBuf>) -> Self
Updates the temp_file_folder attribute. Useful for fluent-style api usage.
Trait Implementations
sourceimpl Clone for ExtsortConfig
impl Clone for ExtsortConfig
sourcefn clone(&self) -> ExtsortConfig
fn clone(&self) -> ExtsortConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for ExtsortConfig
impl Send for ExtsortConfig
impl Sync for ExtsortConfig
impl Unpin for ExtsortConfig
impl UnwindSafe for ExtsortConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more