Trait treediff::Value [] [src]

pub trait Value: PartialEq<Self> {
    type Key;
    type Item;
    fn items<'a>(
        &'a self
    ) -> Option<Box<Iterator<Item = (Self::Key, &'a Self::Item)> + 'a>>; }

Represents a scalar value or an associative array.

Associated Types

The Key type used to find Values in a mapping.

The Value type itself.

Required Methods

Returns None if this is a scalar value, and an iterator yielding (Key, Value) pairs otherwise. It is entirely possible for it to yield no values though.

Implementors