pub struct CompilationUnit {
pub source: PathBuf,
pub output: PathBuf,
pub module_name: String,
pub is_cached: bool,
}Expand description
A single unit of compilation (one source file to one object).
Fields§
§source: PathBufSource file path.
output: PathBufOutput artifact path.
module_name: StringModule name.
is_cached: boolWhether this unit was already compiled and up-to-date.
Implementations§
Trait Implementations§
Source§impl Clone for CompilationUnit
impl Clone for CompilationUnit
Source§fn clone(&self) -> CompilationUnit
fn clone(&self) -> CompilationUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompilationUnit
impl RefUnwindSafe for CompilationUnit
impl Send for CompilationUnit
impl Sync for CompilationUnit
impl Unpin for CompilationUnit
impl UnsafeUnpin for CompilationUnit
impl UnwindSafe for CompilationUnit
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