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

source

pub fn new(filename: Option<&str>) -> Result<Self, Error>

source

fn lock_file(&self, file_path: &PathBuf) -> FileLock

source

pub fn update_and_copy(&mut self)

source

pub fn add_struct_items(&mut self, items: &[Item])

source

pub fn add_struct_items_and_update(&mut self, items: &[Item])

source

pub fn add_impl_function(&mut self, function: &Item)

source

pub fn add_impl_function_and_update(&mut self, function: &Item)

source

pub fn add_trait_item(&mut self, trait_item: &TraitItem)

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V