pub struct PcontigConfig {
pub level: u8,
pub max_buffers_threshold: usize,
pub out_in_ratio_threshold: f64,
}Expand description
Configuration for partial contiguous optimization.
Fields§
§level: u80=disabled, 1=basic, 2=enabled (default), 3+=aggressive
max_buffers_threshold: usizeMax buffers before keeping BUFFERIZE (default: 3)
out_in_ratio_threshold: f64Max output/input ratio for partial contiguous (default: 10.0)
Trait Implementations§
Source§impl Clone for PcontigConfig
impl Clone for PcontigConfig
Source§fn clone(&self) -> PcontigConfig
fn clone(&self) -> PcontigConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PcontigConfig
impl Debug for PcontigConfig
Auto Trait Implementations§
impl Freeze for PcontigConfig
impl RefUnwindSafe for PcontigConfig
impl Send for PcontigConfig
impl Sync for PcontigConfig
impl Unpin for PcontigConfig
impl UnsafeUnpin for PcontigConfig
impl UnwindSafe for PcontigConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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