pub struct GeneralBuilder<E, C, P>{ /* private fields */ }Expand description
general buffer trigger builer
Implementations§
Source§impl<E, C, P> Builder<E, C, P>
impl<E, C, P> Builder<E, C, P>
Sourcepub fn get_container(self, get_container: fn(&mut Option<P>) -> &mut C) -> Self
pub fn get_container(self, get_container: fn(&mut Option<P>) -> &mut C) -> Self
set get_container
Sourcepub fn get_and_clear_container(
self,
get_and_clear_container: fn(&mut Option<P>) -> C,
) -> Self
pub fn get_and_clear_container( self, get_and_clear_container: fn(&mut Option<P>) -> C, ) -> Self
set get_and_clear_container
Sourcepub fn accumulator(self, accumulator: fn(&mut C, E)) -> Self
pub fn accumulator(self, accumulator: fn(&mut C, E)) -> Self
set accumulator
Trait Implementations§
Auto Trait Implementations§
impl<E, C, P> Freeze for Builder<E, C, P>
impl<E, C, P> RefUnwindSafe for Builder<E, C, P>where
Option<P>: RefUnwindSafe,
fn(C): RefUnwindSafe,
fn(&Option<P>) -> usize: RefUnwindSafe,
fn(&mut Option<P>): RefUnwindSafe,
fn(&mut Option<P>) -> &mut C: RefUnwindSafe,
fn(&mut C, E): RefUnwindSafe,
fn(&mut Option<P>) -> C: RefUnwindSafe,
impl<E, C, P> Send for Builder<E, C, P>
impl<E, C, P> Sync for Builder<E, C, P>
impl<E, C, P> Unpin for Builder<E, C, P>
impl<E, C, P> UnsafeUnpin for Builder<E, C, P>where
Option<P>: UnsafeUnpin,
fn(C): UnsafeUnpin,
fn(&Option<P>) -> usize: UnsafeUnpin,
fn(&mut Option<P>): UnsafeUnpin,
fn(&mut Option<P>) -> &mut C: UnsafeUnpin,
fn(&mut C, E): UnsafeUnpin,
fn(&mut Option<P>) -> C: UnsafeUnpin,
impl<E, C, P> UnwindSafe for Builder<E, C, P>where
Option<P>: UnwindSafe,
fn(C): UnwindSafe,
fn(&Option<P>) -> usize: UnwindSafe,
fn(&mut Option<P>): UnwindSafe,
fn(&mut Option<P>) -> &mut C: UnwindSafe,
fn(&mut C, E): UnwindSafe,
fn(&mut Option<P>) -> C: UnwindSafe,
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