Struct zapper::bytecode::Bytecode[][src]

pub struct Bytecode<NumEnum, StrEnum, FilterEnum> { /* fields omitted */ }

Methods

impl<'a, NumEnum: 'a + Copy + Debug + Send + Sync, StrEnum: 'a + Copy + Debug + Send + Sync + PartialEq, FilterEnum: 'a + Copy + Debug + Send + Sync> Bytecode<NumEnum, StrEnum, FilterEnum>
[src]

Renders a template across multiple items in parallel using Rayon with convenient internally-managed buffers. par_chunk_size controls the number of iterations that are rendered on each thread before locking the mutex that wraps output to write out the work done so far.

NOTE: This function makes trade-offs to enable the maximum throughput. It is less efficient, but given the right par_chunk_size and right number of cores, it can increase total throughput.

A recommended starting point for par_chunk_size is 50.

Renders a template using convenient internally-managed buffers, which requires a mutable reference to self.

Renders a template using only externally provided buffers, allowing for parallelizing the render process by using buffers that are local to the current thread. This allows it to require only an immutable reference to self.

Trait Implementations

impl<NumEnum: Debug, StrEnum: Debug, FilterEnum: Debug> Debug for Bytecode<NumEnum, StrEnum, FilterEnum>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<NumEnum, StrEnum, FilterEnum> Send for Bytecode<NumEnum, StrEnum, FilterEnum> where
    FilterEnum: Send,
    NumEnum: Send,
    StrEnum: Send

impl<NumEnum, StrEnum, FilterEnum> Sync for Bytecode<NumEnum, StrEnum, FilterEnum> where
    FilterEnum: Sync,
    NumEnum: Sync,
    StrEnum: Sync