Struct cargo::util::config::Config
[−]
[src]
pub struct Config {
// some fields omitted
}pub struct Config {
// some fields omitted
}impl Configfn new(shell: MultiShell, cwd: PathBuf, homedir: PathBuf) -> CargoResult<Config>fn default() -> CargoResult<Config>fn home(&self) -> &Pathfn git_db_path(&self) -> PathBuffn git_checkout_path(&self) -> PathBuffn registry_index_path(&self) -> PathBuffn registry_cache_path(&self) -> PathBuffn registry_source_path(&self) -> PathBuffn shell(&self) -> RefMut<MultiShell>fn rustc(&self) -> &Pathfn rustdoc(&self) -> &Pathfn rustc_info(&self) -> &Rustcfn values(&self) -> CargoResult<Ref<HashMap<String, ConfigValue>>>fn cwd(&self) -> &Pathfn target_dir(&self, pkg: &Package) -> PathBuffn set_target_dir(&self, path: &Path)fn get(&self, key: &str) -> CargoResult<Option<ConfigValue>>fn get_string(&self, key: &str) -> CargoResult<Option<(String, PathBuf)>>fn get_path(&self, key: &str) -> CargoResult<Option<PathBuf>>fn get_list(&self, key: &str) -> CargoResult<Option<(Vec<(String, PathBuf)>, PathBuf)>>fn get_table(&self, key: &str) -> CargoResult<Option<(HashMap<String, CV>, PathBuf)>>fn get_i64(&self, key: &str) -> CargoResult<Option<(i64, PathBuf)>>fn expected<T>(&self, ty: &str, key: &str, val: CV) -> CargoResult<T>