pub struct ModuleFile {
pub module: Vec<String>,
pub role: Role,
pub path: PathBuf,
pub display: String,
}Expand description
One .wolf file of a project.
Fields§
§module: Vec<String>The module path derived from the file path, for example ["users", "storage"].
role: RoleThe role of the file.
path: PathBufThe file on disk.
display: StringThe path relative to the project root with /, as shown in diagnostics.
Trait Implementations§
Source§impl Clone for ModuleFile
impl Clone for ModuleFile
Source§impl Debug for ModuleFile
impl Debug for ModuleFile
impl Eq for ModuleFile
Source§impl PartialEq for ModuleFile
impl PartialEq for ModuleFile
impl StructuralPartialEq for ModuleFile
Auto Trait Implementations§
impl Freeze for ModuleFile
impl RefUnwindSafe for ModuleFile
impl Send for ModuleFile
impl Sync for ModuleFile
impl Unpin for ModuleFile
impl UnsafeUnpin for ModuleFile
impl UnwindSafe for ModuleFile
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