Skip to content

Instantly share code, notes, and snippets.

@awreece
Created June 19, 2012 18:58
Show Gist options
  • Save awreece/2955891 to your computer and use it in GitHub Desktop.
Save awreece/2955891 to your computer and use it in GitHub Desktop.
impl of item for itemtag {
fn item() -> itemdoc {
alt self {
doc::modtag(doc) { doc.item }
doc::nmodtag(doc) { doc.item }
doc::fntag(doc) { doc.item }
doc::consttag(doc) { doc.item }
doc::enumtag(doc) { doc.item }
doc::restag(doc) { doc.item }
doc::ifacetag(doc) { doc.item }
doc::impltag(doc) { doc.item }
doc::tytag(doc) { doc.item }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment