pub struct ModuleRoot {
pub name: String,
pub dir: String,
pub language: &'static str,
}Expand description
A discovered package root: files under dir belong to package name
for language language.
Fields§
§name: String§dir: StringRepo-relative directory of the manifest (“” for repo root).
language: &'static strTrait Implementations§
Source§impl Clone for ModuleRoot
impl Clone for ModuleRoot
Source§fn clone(&self) -> ModuleRoot
fn clone(&self) -> ModuleRoot
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 ModuleRoot
impl RefUnwindSafe for ModuleRoot
impl Send for ModuleRoot
impl Sync for ModuleRoot
impl Unpin for ModuleRoot
impl UnsafeUnpin for ModuleRoot
impl UnwindSafe for ModuleRoot
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