MCPcopy Create free account
hub / github.com/csskit/csskit / Hex

Class Hex

crates/chromashift/src/hex.rs:6–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4/// An Hex representation of the sRGB colour space.
5#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
6pub struct Hex(u32);
7
8const fn is_shorthand_byte(byte: u8) -> bool {
9 (byte >> 4) == (byte & 0xF)

Callers 4

to_chromashiftMethod · 0.85
roundMethod · 0.85
clamp_to_gamutMethod · 0.85
map_to_gamutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected