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 | ||
String | ||
List | ||
Table | ||
Boolean |
Methods
impl ConfigValue
[src]
fn i64(&self) -> CargoResult<(i64, &Path)>
fn string(&self) -> CargoResult<(&str, &Path)>
fn table(&self) -> CargoResult<(&HashMap<String, ConfigValue>, &Path)>
fn list(&self) -> CargoResult<&[(String, PathBuf)]>
fn boolean(&self) -> CargoResult<(bool, &Path)>
fn desc(&self) -> &'static str
fn definition_path(&self) -> &Path
Trait Implementations
impl Debug for ConfigValue
[src]
impl Encodable for ConfigValue
[src]
Derived Implementations
impl Decodable for ConfigValue
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConfigValue, __D::Error>
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 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 !=
.