simple-triplestore 0.1.1

A simple graph database for storing triples with support for custom node and edge properties.
Documentation
/// Types which can be merged together in a sensible fashion.
///
/// Intended to be used for hashtables or json objects.
pub trait Mergeable {
    ///
    fn merge(&mut self, other: Self);
}

impl Mergeable for () {
    fn merge(&mut self, _other: Self) {}
}

#[cfg(test)]
mod test {
    use super::Mergeable;

    #[test]
    fn test_merge_unit() {
        assert_eq!(().merge(()), ());
    }
}