Enum gitconfig::value::Value
[−]
[src]
pub enum Value { String(String), Object(Map<String, Value>), }
Variants
String(String)
Object(Map<String, Value>)
Methods
impl Value
[src]
fn is_object(&self) -> bool
[src]
Returns true if the Value
is an Object. Returns false otherwise.
For any Value on which is_object
returns true, as_object
and
as_object_mut
are guaranteed to return the map representation of the
object.
fn as_object(&self) -> Option<&Map<String, Value>>
[src]
If the Value
is an Object, returns the associated Map. Returns None
otherwise.
fn as_object_mut(&mut self) -> Option<&mut Map<String, Value>>
[src]
If the Value
is an Object, returns the associated mutable Map.
Returns None otherwise.
Trait Implementations
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more