pub struct LocalModule {
pub name: Name,
pub file: String,
}Expand description
One module the package being compiled declares: the name its header gives it, and
the file it was written in as SourceFile::package_path
renders it — src/Model.zel.
The file travels with the name because the package’s two source roots share one set
of names: src/Model.zel and tests/Model.zel are both Model, and that is the
same error as declaring one name twice under one root. Saying which files claimed
the name is the whole of what makes that error actionable.
Fields§
§name: Name§file: StringTrait Implementations§
Source§impl Clone for LocalModule
impl Clone for LocalModule
Source§fn clone(&self) -> LocalModule
fn clone(&self) -> LocalModule
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 moreAuto Trait Implementations§
impl Freeze for LocalModule
impl RefUnwindSafe for LocalModule
impl Send for LocalModule
impl Sync for LocalModule
impl Unpin for LocalModule
impl UnsafeUnpin for LocalModule
impl UnwindSafe for LocalModule
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