Struct nandoize::lib_output::LibFileOutput
source · pub struct LibFileOutput {
intermediate_file_path: Box<PathBuf>,
final_file_path: Box<PathBuf>,
use_items: Vec<Item>,
last_flushed_use_item_idx: usize,
resolver_func_info: Vec<(String, ResolverMappingContext, bool, Vec<String>, Vec<String>)>,
}Expand description
Responsible for maintaining the concrete implementation of function and metadata resolvers for
the given library up to date as we process nandoize_lib macros
Fields§
§intermediate_file_path: Box<PathBuf>§final_file_path: Box<PathBuf>§use_items: Vec<Item>§last_flushed_use_item_idx: usize§resolver_func_info: Vec<(String, ResolverMappingContext, bool, Vec<String>, Vec<String>)>Implementations§
source§impl LibFileOutput
impl LibFileOutput
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(crate) fn add_resolver_arm( &mut self, function_name: &str, resolver_mapping: ResolverMappingContext, is_own_crate: bool, preamble: Vec<String>, epilogue: Vec<String> )
pub(crate) fn add_resolver_arm_and_update( &mut self, function_name: &str, resolver_mapping: ResolverMappingContext, is_own_crate: bool, preamble: Vec<String>, epilogue: Vec<String> )
Trait Implementations§
impl Send for LibFileOutput
impl Sync for LibFileOutput
Auto Trait Implementations§
impl RefUnwindSafe for LibFileOutput
impl Unpin for LibFileOutput
impl UnwindSafe for LibFileOutput
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