Skip to main content

TextRegexApproxResult

Type Alias TextRegexApproxResult 

Source
pub type TextRegexApproxResult = Option<Result<Vec<TextHit>, TreError>>;
Expand description

Result of an approximate-regex query through the TRE engine. The outer Option is None when no TEXT field by that name is declared; the inner Result surfaces a TRE-engine compilation or matching error.

Aliased Type§

pub enum TextRegexApproxResult {
    None,
    Some(Result<Vec<(Vec<u8>, Vec<u8>)>, TreError>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.