cranelift_codegen_meta

Module unique_table

source
Expand description

An index-accessed table implementation that avoids duplicate entries.

Structs§

  • UniqueSeqTable πŸ”’
    A table of sequences which tries to avoid common subsequences.
  • UniqueTable πŸ”’
    Collect items into the table list, removing duplicates.

Functions§

  • find_subsequence πŸ”’
    Try to find the subsequence sub in the whole sequence. Returns None if it’s not been found, or Some(index) if it has been. Naive implementation until proven we need something better.