Guest User

Untitled

a guest
Dec 14th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. mod error {
  2. pub enum Error {}
  3. }
  4. use self::error::Error;
  5. use petgraph::{
  6. Directed,
  7. graph::{
  8. Graph,
  9. NodeIndex,
  10. },
  11. };
  12. use std::result::Result as StdResult;
  13. type Result<T> = StdResult<T, Error>;
  14. type GraphType<'a> = Graph<&'a dyn Detector, (), Directed, usize>;
  15.  
  16. trait Detector {}
  17.  
  18. #[derive(Debug)]
  19. struct MyGraph<'a>(GraphType<'a>);
  20.  
  21. fn main() -> Result<()> {
  22. Ok(())
  23. }
Add Comment
Please, Sign In to add comment