Trait cairo_lang_filesystem::db::FilesGroupEx
source · pub trait FilesGroupEx: Upcast<dyn FilesGroup> + AsFilesGroupMut {
fn override_file_content(
&mut self,
file: FileId,
content: Option<Arc<String>>
) { ... }
fn set_crate_root(&mut self, crt: CrateId, root: Option<Directory>) { ... }
fn with_project_config(&mut self, config: ProjectConfig) { ... }
}
Provided Methods§
sourcefn override_file_content(&mut self, file: FileId, content: Option<Arc<String>>)
fn override_file_content(&mut self, file: FileId, content: Option<Arc<String>>)
Overrides file content. None value removes the override.
sourcefn set_crate_root(&mut self, crt: CrateId, root: Option<Directory>)
fn set_crate_root(&mut self, crt: CrateId, root: Option<Directory>)
Sets the root directory of the crate. None value removes the crate.
sourcefn with_project_config(&mut self, config: ProjectConfig)
fn with_project_config(&mut self, config: ProjectConfig)
Updates the crate roots from a ProjectConfig object.