Reference · Rules and helpers · rules.rs

redact_terms Function

What ToolOptions::Redact.terms should carry for these hits: each text found once, plus the words typed.

func redactTerms(hits: [RedactHit], q: RedactQuery) -> [String]

Parameters

NameTypeSwift / C#
hitsVec<RedactHit>hits
qRedactQueryq

Returns

Vec<String>

Errors

Does not throw.

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.