Vertex/Position ::unwrap (inverse of to_option)

pmeunier
Sep 21, 2021, 7:11 PM
Q2WQ6P6LO46EF6DI5KCW366N76DAUAXHWFO2DTPMLAIOGCGXHSSAC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in "libpijul/src/pristine/vertex.rs" at line 179
    [2.530162]
    [2.530162]
    }
    }
    }
    impl<H> Position<Option<H>> {
    pub fn unwrap(self) -> Position<H> {
    Position {
    change: self.change.unwrap(),
    pos: self.pos,
  • edit in "libpijul/src/pristine/vertex.rs" at line 192
    [2.530181]
    [2.530181]
    impl<H> Vertex<Option<H>> {
    pub fn unwrap(self) -> Vertex<H> {
    Vertex {
    change: self.change.unwrap(),
    start: self.start,
    end: self.end,
    }
    }
    }