pub struct ParserOptions {
pub pipeline_size: usize,
pub channel_size: usize,
pub num_threads: usize,
}Expand description
Options that affect the performance of BlockParser and ParserIterator.
Generally changing these will be unnessary unless you really need to tune performance.
Fields§
§pipeline_size: usizeHow many items will be parsed in each ParserIterator::pipeline batch.
channel_size: usizeThe size of all crossbeam_channel::bounded channels that communicate between threads.
num_threads: usizeThe number of threads that will be spawned when running a multithreaded function.
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
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 ParserOptions
impl Debug for ParserOptions
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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