This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! This is an experiment on how to get rid of lifetime parameters in | |
//! Sopghia's Graph and Dataset traits. It demonstrates the general idea | |
//! on a simplified version of Triple and Graph. | |
//! | |
//! Graph iterators no longer return Graph::Triple's, | |
//! they return a safe abstraction around it: GuardedTRiple<'a, Graph::Triple>. | |
//! | |
//! Graph::Triple itself can be one of several options: | |
//! * T (where T implements Triple) | |
//! * *const T (where T implements Triple) |