Created
December 2, 2015 05:30
-
-
Save pshc/7d4dd40fbc9558a43b90 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
fn unwrappin_life() { | |
guard! { | |
let decl = match blk.stmts[0].node { StmtDecl(ref decl, _) }; | |
let item = match decl.node { DeclItem(ref item) }; | |
let expr = match item.node { ItemStatic(_, _, ref expr) }; | |
let ptr = match expr.node { ExprAddrOf(_, ref ptr) }; | |
let array = match ptr.node { ExprVec(ref array) }; | |
else return nope!("lack of array of strings") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment