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
Required Methods
fn items<'a>(
&'a self
) -> Option<Box<Iterator<Item = (Self::Key, &'a Self::Item)> + 'a>>
&'a self
) -> Option<Box<Iterator<Item = (Self::Key, &'a Self::Item)> + 'a>>
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.