Skip to main content

TextRegexResult

Type Alias TextRegexResult 

Source
pub type TextRegexResult = Option<Result<Vec<TextHit>, RegexError>>;
Expand description

Result of a regex query through the trigram-backed text index. The outer Option is None when no TEXT field by that name is declared; the inner Result surfaces a regex compilation error.

Aliased Type§

pub enum TextRegexResult {
    None,
    Some(Result<Vec<(Vec<u8>, Vec<u8>)>, RegexError>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Result<Vec<(Vec<u8>, Vec<u8>)>, RegexError>)

Some value of type T.