Enum cargo::util::config::ConfigValue
[−]
[src]
pub enum ConfigValue { Integer(i64, PathBuf), String(String, PathBuf), List(Vec<(String, PathBuf)>, PathBuf), Table(HashMap<String, ConfigValue>, PathBuf), Boolean(bool, PathBuf), }
Variants
Integer(i64, PathBuf)
String(String, PathBuf)
List(Vec<(String, PathBuf)>, PathBuf)
Table(HashMap<String, ConfigValue>, PathBuf)
Boolean(bool, PathBuf)
Methods
impl ConfigValue
[src]
fn i64(&self, key: &str) -> CargoResult<(i64, &Path)>
fn string(&self, key: &str) -> CargoResult<(&str, &Path)>
fn table(&self,
key: &str)
-> CargoResult<(&HashMap<String, ConfigValue>, &Path)>
key: &str)
-> CargoResult<(&HashMap<String, ConfigValue>, &Path)>
fn list(&self, key: &str) -> CargoResult<&[(String, PathBuf)]>
fn boolean(&self, key: &str) -> CargoResult<(bool, &Path)>
fn desc(&self) -> &'static str
fn definition_path(&self) -> &Path
Trait Implementations
impl Eq for ConfigValue
[src]
impl PartialEq for ConfigValue
[src]
fn eq(&self, __arg_0: &ConfigValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConfigValue) -> bool
This method tests for !=
.
impl Clone for ConfigValue
[src]
fn clone(&self) -> ConfigValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Decodable for ConfigValue
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConfigValue, __D::Error>
Deserialize a value using a Decoder
.