Struct nandoize::implementation_output::FileOutput
source · pub struct FileOutput {
intermediate_file_path: Box<PathBuf>,
final_file_path: Box<PathBuf>,
use_items: Vec<Item>,
last_flushed_use_item_idx: usize,
impl_functions: Vec<Item>,
last_flushed_impl_function_idx: usize,
trait_items: Vec<TraitItem>,
}Expand description
Responsible for maintaining the concrete implementation of NandoManager up
to date as we process nandoize macros
Fields§
§intermediate_file_path: Box<PathBuf>§final_file_path: Box<PathBuf>§use_items: Vec<Item>§last_flushed_use_item_idx: usize§impl_functions: Vec<Item>§last_flushed_impl_function_idx: usize§trait_items: Vec<TraitItem>Implementations§
source§impl FileOutput
impl FileOutput
pub fn new(filename: Option<&str>) -> Result<Self, Error>
fn lock_file(&self, file_path: &PathBuf) -> FileLock
pub fn update_and_copy(&mut self)
pub fn add_struct_items(&mut self, items: &[Item])
pub fn add_struct_items_and_update(&mut self, items: &[Item])
pub fn add_impl_function(&mut self, function: &Item)
pub fn add_impl_function_and_update(&mut self, function: &Item)
pub fn add_trait_item(&mut self, trait_item: &TraitItem)
Trait Implementations§
impl Send for FileOutput
impl Sync for FileOutput
Auto Trait Implementations§
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