Skip to content

struct

SortKey

pub struct SortKey {
    pub breakpoint: u16,
    pub media: u8,
    pub variants: u64,
    pub rank: u32,
}

Ordering key: media (breakpoints, then other media) → variants → utility rank, mirroring Tailwind's precedence rules.

Fields

breakpoint

pub breakpoint: u16

0 without a width query; max-* queries sort before min-* ones, narrower max-* and wider min-* later (so they win).

media

pub media: u8

Other media queries (print, prefers-*) sort after none.

variants

pub variants: u64

Which variants (hover:, focus:…) apply, as bits ranked by precedence.

rank

pub rank: u32

The utility's place in Tailwind's order.

Trait implementations