You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			627 B
		
	
	
	
		
			Rust
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			627 B
		
	
	
	
		
			Rust
		
	
| use std::path::PathBuf;
 | |
| 
 | |
| use super::Section;
 | |
| use crate::error::Error;
 | |
| 
 | |
| pub trait Output<'data> {
 | |
|     fn append_section(&mut self, section: Section<'data>) -> Result<(), Error>;
 | |
| 
 | |
|     // fn prepare_symbol<V, S>(&mut self, symbol: impl Lazy<V, S>) -> Result<&mut Self, Error>;
 | |
| 
 | |
|     fn finalize(self) -> Result<PathBuf, Error>;
 | |
| }
 | |
| 
 | |
| pub struct DummyOutput;
 | |
| 
 | |
| impl<'data> Output<'data> for DummyOutput {
 | |
|     fn append_section(&mut self, section: Section<'data>) -> Result<(), Error> {
 | |
|         eprintln!("Appending section: {}", section);
 | |
|         Ok(())
 | |
|     }
 | |
| 
 | |
|     fn finalize(self) -> Result<PathBuf, Error> {
 | |
|         todo!();
 | |
|     }
 | |
| }
 |