Skip to main content

exact_hay

Function exact_hay 

Source
fn exact_hay<'a>(
    idx: &'a VolumeIndex,
    t: &CTerm,
    id: EntryId,
) -> Option<&'a [u8]>
Expand description

The haystack for a case-exact name literal. Fold-identical entries resolve in O(1) (ADR-0004): a needle that is not its own fold can never occur in a name whose every character is fold-stable (UTF-8/WTF-8 self-synchronization makes the byte-level argument sound), and for a fold-stable needle the folded bytes are the original bytes.