Struct glfw::DebugAliases
source · [−]pub struct DebugAliases<T>(pub T);
Expand description
Formats the type using aliases rather than the default variant names.
Example
ⓘ
assert_eq(format!("{}", glfw::MouseButtonLeft), "MouseButton1");
assert_eq(format!("{}", glfw::DebugAliases(glfw::MouseButtonLeft)), "MouseButtonLeft");
Tuple Fields
0: T
Trait Implementations
sourceimpl Debug for DebugAliases<MouseButton>
impl Debug for DebugAliases<MouseButton>
Auto Trait Implementations
impl<T> RefUnwindSafe for DebugAliases<T> where
T: RefUnwindSafe,
impl<T> Send for DebugAliases<T> where
T: Send,
impl<T> Sync for DebugAliases<T> where
T: Sync,
impl<T> Unpin for DebugAliases<T> where
T: Unpin,
impl<T> UnwindSafe for DebugAliases<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more