#include <textdocument.hpp> struct SearchResult { // fields TextRange result {}; std::vector<TextRange> captures {}; // methods bool isValid() const; bool operator==(const SearchResult& other); };