pub struct Module {
pub name: String,
pub path: String,
pub facets: Vec<Facet>,
pub libraries: Vec<Library>,
pub sub_modules: Vec<Module>,
pub content_root: ContentRoot,
}
Fields§
§name: String
§path: String
§facets: Vec<Facet>
§libraries: Vec<Library>
§sub_modules: Vec<Module>
§content_root: ContentRoot
Implementations§
Source§impl Module
impl Module
pub fn add_facet(&mut self, facet: Facet)
pub fn add_library(&mut self, lib: Library)
pub fn add_sub_module(&mut self, sub_module: Module)
pub fn add_sub_modules(&mut self, sub_modules: &mut Vec<Module>)
pub fn add_source_root(&mut self, source_root: String)
pub fn add_resource_root(&mut self, resource_root: String)
pub fn add_test_source_root(&mut self, test_source_root: String)
pub fn new(name: &str, path: &str) -> Self
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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