Skip to main content

model_for

Function model_for 

Source
pub fn model_for(decl: &TypeDecl, with_examples: bool) -> Option<RefinedModel>
Expand description

The explorer model for a declaration, or None unless it is a refined (or opaque) Int, Float or String that carries at least one predicate. with_examples is false on the hover path, which reads only the clauses: drawing examples there would be work done on every hover for nothing.