cairo_lang_filesystem::db

Trait FilesGroupEx

source
pub trait FilesGroupEx: Upcast<dyn FilesGroup> + AsFilesGroupMut {
    // Provided methods
    fn override_file_content(&mut self, file: FileId, content: Option<Arc<str>>) { ... }
    fn set_crate_config(
        &mut self,
        crt: CrateId,
        root: Option<CrateConfiguration>,
    ) { ... }
    fn set_flag(&mut self, id: FlagId, value: Option<Arc<Flag>>) { ... }
    fn use_cfg(&mut self, cfg_set: &CfgSet) { ... }
}

Provided Methods§

source

fn override_file_content(&mut self, file: FileId, content: Option<Arc<str>>)

Overrides file content. None value removes the override.

source

fn set_crate_config(&mut self, crt: CrateId, root: Option<CrateConfiguration>)

Sets the root directory of the crate. None value removes the crate.

source

fn set_flag(&mut self, id: FlagId, value: Option<Arc<Flag>>)

Sets the given flag value. None value removes the flag.

source

fn use_cfg(&mut self, cfg_set: &CfgSet)

Merges specified CfgSet into one already stored in this db.

Implementors§