fn hash<H: Hasher>(&self, state: &mut H) {
		match self.is_1bpp {
			false => {
				(self.r >> 4).hash(state);
				(self.g >> 4).hash(state);
				(self.b >> 4).hash(state);
			}
			true => {
				self.is_on.hash(state);
			}
		}
	}
/// Only hash based on upper 4 bits of rgb values, as
/// rest are lost in the palette
Only hash based on upper 4 bits of rgb values, as
rest are lost in the palette
Only hash based on upper 4 bits of rgb values as rest are lost in the palette
fn hash<H: Hasher>(&self, state: &mut H) {
		match self.is_1bpp {
			false => {
				(self.r >> 4).hash(state);
				(self.g >> 4).hash(state);
				(self.b >> 4).hash(state);
			}
			true => {
				self.is_on.hash(state);
			}
		}
	}
fn hash < H : Hasher > ( & self , state : & mut H ) { match self . is_1bpp { false => { ( self . r >> 4 ) . hash ( state ) ; ( self . g >> 4 ) . hash ( state ) ; ( self . b >> 4 ) . hash ( state ) ; } true => { self . is_on . hash ( state ) ; } } }
Only hash based on upper 4 bits of rgb values, as
rest are lost in the palette
Only hash based on upper 4 bits of rgb values as rest are lost in the palette
&self
state
&mut H