Skip to content

Commit

Permalink
Add Word impls for signed integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkyl committed Sep 4, 2020
1 parent 6cce982 commit b5926a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit b5926a9

Please sign in to comment.