Skip to content

Instantly share code, notes, and snippets.

@tbillington
Created August 21, 2014 10:57
Show Gist options
  • Save tbillington/4513202d51a285a89e19 to your computer and use it in GitHub Desktop.
Save tbillington/4513202d51a285a89e19 to your computer and use it in GitHub Desktop.
pub enum VertexData {
GeoVert(GeometericVertex),
TexVert(TextureVertex),
VertNml(VertexNormals),
PmSVert(ParameterSpaceVertex),
}
impl fmt::Show for VertexData {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
_(x) => write!(f, "{}", x),
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment