pub struct DbOptions {
pub autosplit: bool,
pub timing: bool,
pub trace_recalc: bool,
pub incremental: bool,
pub jobs: usize,
}
Expand description
Structure for options that affect database processing, and must be constant for the lifetime of the database container.
Some of these could theoretically support modification.
Fields§
§autosplit: bool
If true, the automatic splitting of large files described above is enabled, with the caveat about chapter comments inside grouping statements.
timing: bool
If true, time in milliseconds is printed after the completion of each pass.
trace_recalc: bool
True to print names (determined by a very simple heuristic, see
parser::guess_buffer_name
) of segments which are recalculated in each
pass.
incremental: bool
True to record detailed usage data needed for incremental operation.
This will slow down the initial analysis, so don’t set it if you won’t use it. If this is false, any reparse will result in a full recalculation, so it is always safe but different settings will be faster for different tasks.
jobs: usize
Number of jobs to run in parallel at any given time.
Trait Implementations§
impl Copy for DbOptions
Auto Trait Implementations§
impl Freeze for DbOptions
impl RefUnwindSafe for DbOptions
impl Send for DbOptions
impl Sync for DbOptions
impl Unpin for DbOptions
impl UnwindSafe for DbOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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