Trait verilization_compiler::lang::OutputHandler [−][src]
pub trait OutputHandler<'state> { type FileHandle: Write; fn create_file<P: AsRef<Path>>(
&'state mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>; }
Outputs files produced by the generator.
Allows for capturing the output without writing directly to the file system.
Associated Types
type FileHandle: Write
[src]
Required methods
fn create_file<P: AsRef<Path>>(
&'state mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>
[src]
&'state mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>
Implementors
impl<'output> OutputHandler<'output> for FileOutputHandler
[src]
impl<'output> OutputHandler<'output> for FileOutputHandler
[src]type FileHandle = File
fn create_file<P: AsRef<Path>>(
&'output mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>
[src]
&'output mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>
impl<'output> OutputHandler<'output> for MemoryOutputHandler
[src]
impl<'output> OutputHandler<'output> for MemoryOutputHandler
[src]type FileHandle = &'output mut Vec<u8>
fn create_file<P: AsRef<Path>>(
&'output mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>
[src]
&'output mut self,
path: P
) -> Result<Self::FileHandle, GeneratorError>