pub struct DynOutputProcessor<Ctx, Out>(/* private fields */);Expand description
A concrete wrapper that implements OutputProcessor via type-erased dispatch.
Allows heterogeneous chains of different concrete OutputProcessor types.
Implementations§
Source§impl<Ctx, Out> DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> DynOutputProcessor<Ctx, Out>
Sourcepub fn new<T>(processor: T) -> Self
pub fn new<T>(processor: T) -> Self
Creates a DynOutputProcessor from any OutputProcessor implementation.
The processor must have Context = Ctx and Output = Out.
Trait Implementations§
Source§impl<Ctx, Out> OutputProcessor for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> OutputProcessor for DynOutputProcessor<Ctx, Out>
Auto Trait Implementations§
impl<Ctx, Out> !RefUnwindSafe for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> !UnwindSafe for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> Freeze for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> Send for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> Sync for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> Unpin for DynOutputProcessor<Ctx, Out>
impl<Ctx, Out> UnsafeUnpin for DynOutputProcessor<Ctx, Out>
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