Struct glfw::DebugAliases [] [src]

pub struct DebugAliases<T>(pub T);

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

Example

Be careful when using this code, it's not being tested!
assert_eq(format!("{}", glfw::MouseButtonLeft), "MouseButton1");
assert_eq(format!("{}", glfw::DebugAliases(glfw::MouseButtonLeft)), "MouseButtonLeft");

Trait Implementations

impl Debug for DebugAliases<MouseButton>
[src]

[src]

Formats the value using the given formatter.