pub trait SerializeFn<W>: Fn(WriteContext<W>) -> GenResult<W> { }
Expand description

Trait for serializing functions

Serializing functions take one input W that is the target of writing and return an instance of cookie_factory::GenResult.

This trait is implemented for all Fn(W) -> GenResult<W>.

Implementors§

source§

impl<W, F: Fn(WriteContext<W>) -> GenResult<W>> SerializeFn<W> for F