pub struct SourceFile {
pub display: String,
pub path: PathBuf,
pub module: Vec<String>,
}Expand description
A Rust source file listed in the configuration.
Fields§
§display: StringPath as written in Bern.toml, used in diagnostics.
path: PathBuf§module: Vec<String>Module path inside its crate ([] for lib.rs).
Trait Implementations§
Source§impl Clone for SourceFile
impl Clone for SourceFile
Auto Trait Implementations§
impl Freeze for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnsafeUnpin for SourceFile
impl UnwindSafe for SourceFile
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