Struct xcell_core::WorkspaceManager
source · pub struct WorkspaceManager {
pub config: ProjectConfig,
pub glob_pattern: GlobSet,
pub file_mapping: BTreeMap<PathBuf, XTable>,
pub enum_mapping: BTreeMap<String, EnumerateDescription>,
}
Fields§
§config: ProjectConfig
§glob_pattern: GlobSet
§file_mapping: BTreeMap<PathBuf, XTable>
§enum_mapping: BTreeMap<String, EnumerateDescription>
Implementations§
source§impl WorkspaceManager
impl WorkspaceManager
pub fn collect_merged(&self) -> MergedTable
source§impl WorkspaceManager
impl WorkspaceManager
pub fn get_relative(&self, file: &Path) -> XResult<PathBuf>
pub fn disable_xml(&mut self)
pub fn disable_json(&self)
pub fn dry_run(&mut self)
pub fn clear(&self) -> XResult<()>
source§impl WorkspaceManager
impl WorkspaceManager
sourcepub fn update_file(&mut self, file: &Path)
pub fn update_file(&mut self, file: &Path)
path 需要是绝对路径