Commit 7862710a authored by Thomas Daede's avatar Thomas Daede

Impl Pixel only for u8 and u16.

parent 5bb65e05
......@@ -211,7 +211,8 @@ use num_traits::PrimInt;
use std::mem::size_of;
pub trait Pixel: PrimInt + Into<u32> + Into<i32> + 'static {}
impl<T> Pixel for T where T: PrimInt + Into<u32> + Into<i32> + 'static {}
impl Pixel for u8 {}
impl Pixel for u16 {}
pub trait ILog: PrimInt {
fn ilog(self) -> Self {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment