Struct glfw::ShowAliases[src]

pub struct ShowAliases<T>(pub T);

Formats the type using aliases rather than the default variant names.

Example

assert_eq(format!("{}", glfw::MouseButtonLeft), ~"MouseButton1");
assert_eq(format!("{}", glfw::ShowAliases(glfw::MouseButtonLeft)), ~"MouseButtonLeft");

Trait Implementations

impl Show for ShowAliases<MouseButton>

fn fmt(&self, f: &mut Formatter) -> Result