From b5926a9cdc04270d76b3e0487999dbd334ce99b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Alse=CC=81r?= Date: Fri, 4 Sep 2020 10:07:33 +0200 Subject: [PATCH] Add Word impls for signed integer types --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 78dfc80..ccba40d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,9 +126,13 @@ where pub unsafe trait Word {} unsafe impl Word for u8 {} +unsafe impl Word for i8 {} unsafe impl Word for u16 {} +unsafe impl Word for i16 {} unsafe impl Word for u32 {} +unsafe impl Word for i32 {} unsafe impl Word for u64 {} +unsafe impl Word for i64 {} /// Trait for `Deref` targets used by the blanket `DmaReadBuffer` impl. ///