pub trait SemanticCandidateProvider {
// Required method
fn candidates(
&self,
fragment: &SourceFragment,
limit: usize,
) -> Result<Vec<String>>;
}Expand description
Optional Type-4 candidate source implemented by a future vector package.
The deterministic Type-1/2/3 detector never calls this trait. Higher layers may use it to propose semantic candidates and then apply their own evidence and confidence policy.
Required Methods§
Sourcefn candidates(
&self,
fragment: &SourceFragment,
limit: usize,
) -> Result<Vec<String>>
fn candidates( &self, fragment: &SourceFragment, limit: usize, ) -> Result<Vec<String>>
Returns candidate fragment identifiers for one fragment.
§Errors
Provider failures remain explicit and never change deterministic clone output.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".