Enum gitconfig::value::Value [] [src]

pub enum Value {
    String(String),
    Object(Map<String, Value>),
}

Variants

Methods

impl Value
[src]

[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.

[src]

If the Value is an Object, returns the associated Map. Returns None otherwise.

[src]

If the Value is an Object, returns the associated mutable Map. Returns None otherwise.

Trait Implementations

impl PartialEq for Value
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl FromStr for Value
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more