pub struct EmitReport {
pub crate_dir: PathBuf,
pub files: Vec<PathBuf>,
}Expand description
Summary of artifacts produced by emit_crate.
Returned so callers (CLI, tests, the kernel) know exactly which files were written and where.
Fields§
§crate_dir: PathBufThe crate root.
files: Vec<PathBuf>All files written, in the order they were created.
Implementations§
Source§impl EmitReport
impl EmitReport
Sourcepub fn file_named(&self, name: &str) -> Option<&Path>
pub fn file_named(&self, name: &str) -> Option<&Path>
Convenience: look up a path inside this report by file name.
Trait Implementations§
Source§impl Clone for EmitReport
impl Clone for EmitReport
Source§fn clone(&self) -> EmitReport
fn clone(&self) -> EmitReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmitReport
impl Debug for EmitReport
Source§impl<'de> Deserialize<'de> for EmitReport
impl<'de> Deserialize<'de> for EmitReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmitReport
impl RefUnwindSafe for EmitReport
impl Send for EmitReport
impl Sync for EmitReport
impl Unpin for EmitReport
impl UnsafeUnpin for EmitReport
impl UnwindSafe for EmitReport
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