Created
May 3, 2015 18:45
-
-
Save Diggsey/66e162b585cc841602fd to your computer and use it in GitHub Desktop.
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
let external = match n.nodes { | |
[[Node { contents: External(ref mut q @ Some(_)), .. }, Node { contents: External(None), .. }], [Node { contents: External(None), .. }, Node { contents: External(None), .. }]] | | |
[[Node { contents: External(None), .. }, Node { contents: External(ref mut q @ Some(_)), .. }], [Node { contents: External(None), .. }, Node { contents: External(None), .. }]] | | |
[[Node { contents: External(None), .. }, Node { contents: External(None), .. }], [Node { contents: External(ref mut q @ Some(_)), .. }, Node { contents: External(None), .. }]] | | |
[[Node { contents: External(None), .. }, Node { contents: External(None), .. }], [Node { contents: External(None), .. }, Node { contents: External(ref mut q @ Some(_)), .. }]] => { | |
mem::replace(q, None) | |
}, | |
_ => None | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment