pub struct ParallelTokenQueue;
Expand description
A token queue used for doing lexing and parsing on different threads. Will send tokens between threads
Implementations§
Source§impl ParallelTokenQueue
impl ParallelTokenQueue
Sourcepub fn new<T: TokenTrait, TData>() -> (ParallelTokenSender<T, TData>, ParallelTokenReader<T, TData>)
pub fn new<T: TokenTrait, TData>() -> (ParallelTokenSender<T, TData>, ParallelTokenReader<T, TData>)
Creates two items, a sender and a receiver. Where the reader is on the parsing thread and the sender is on the lexer thread
pub fn new_with_buffer_size<T: TokenTrait, TData>( buffer_size: usize, ) -> (ParallelTokenSender<T, TData>, ParallelTokenReader<T, TData>)
Auto Trait Implementations§
impl Freeze for ParallelTokenQueue
impl RefUnwindSafe for ParallelTokenQueue
impl Send for ParallelTokenQueue
impl Sync for ParallelTokenQueue
impl Unpin for ParallelTokenQueue
impl UnwindSafe for ParallelTokenQueue
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