Skip to content

Commit

Permalink
feat: implement Pod for u128 and i128 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
toku-sa-n committed Sep 29, 2021
1 parent 0ec3505 commit 4a72475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ unsafe impl Pod for u8 {}
unsafe impl Pod for u16 {}
unsafe impl Pod for u32 {}
unsafe impl Pod for u64 {}
unsafe impl Pod for u128 {}
unsafe impl Pod for i8 {}
unsafe impl Pod for i16 {}
unsafe impl Pod for i32 {}
unsafe impl Pod for i64 {}
unsafe impl Pod for i128 {}

/// Reads a `T` from `input` with no checks.
pub unsafe fn read_unsafe<T: Sized>(input: &[u8]) -> &T {
Expand Down

0 comments on commit 4a72475

Please sign in to comment.