To see example implementations of index methods implemented using GiST, examine the following contrib modules:
B-Tree
Indexing for multi-dimensional cubes
RD-Tree for one-dimensional array of int4 values
Indexing for tree-like stuctures
R-Tree
Storage and indexed access for "float ranges"
Full text indexing