Skip to main content

Module generator_context

Module generator_context 

Source

Structsยง

BufferSink
A Write sink backed by a shared, readable in-memory buffer - for callers (e.g. the migration generator) that need to invoke a generator method for its side-effecting writes (via GeneratorContext::with_writer) and then read back what it wrote, without a temp file. Mirrors the SharedBuffer test helper in test_support.rs, but is not #[cfg(test)] since production code outside this crate needs it too.
GeneratorContext