pub struct CatalogEntry {
pub id: String,
pub kind: Kind,
/* private fields */
}Expand description
One catalog builtin.
Fields§
§id: String§kind: KindImplementations§
Source§impl CatalogEntry
impl CatalogEntry
Sourcepub fn spelling(&self, locale: &Locale) -> Option<&str>
pub fn spelling(&self, locale: &Locale) -> Option<&str>
The localized spelling of this builtin in locale, when declared.
Sourcepub fn spellings(&self, locale: &Locale) -> &[String]
pub fn spellings(&self, locale: &Locale) -> &[String]
Every reviewed localized spelling of this builtin, with the first spelling reserved for deterministic emission.
Sourcepub fn resolve_param(&self, locale: &Locale, spelling: &str) -> Option<usize>
pub fn resolve_param(&self, locale: &Locale, spelling: &str) -> Option<usize>
Resolve a canonical or reviewed localized parameter spelling to its unambiguous declared position.
Sourcepub fn param_count(&self) -> usize
pub fn param_count(&self) -> usize
The number of declared arguments for this builtin.
Sourcepub fn param_name(&self, index: usize) -> Option<&str>
pub fn param_name(&self, index: usize) -> Option<&str>
The reviewed semantic name for an argument position, when declared.
Sourcepub fn required_param_count(&self) -> usize
pub fn required_param_count(&self) -> usize
The number of arguments that must be present when trailing defaults are applied. A missing default in the middle of a signature remains a required position; defaults only make the suffix optional.
Sourcepub fn has_param_defaults(&self) -> bool
pub fn has_param_defaults(&self) -> bool
Whether any declared parameter has a default value.
Sourcepub fn param_default(&self, index: usize) -> Option<&str>
pub fn param_default(&self, index: usize) -> Option<&str>
The default value for an argument position, when declared.
Sourcepub fn param_domain(&self, index: usize) -> Option<&str>
pub fn param_domain(&self, index: usize) -> Option<&str>
The declared enum domain for an argument position, when one exists.
Sourcepub fn param_type(&self, index: usize) -> Option<&str>
pub fn param_type(&self, index: usize) -> Option<&str>
The source-backed semantic type for an argument position, when
available. Enum domains remain exposed separately by param_domain.
Sourcepub fn param_coercions(&self, index: usize) -> Option<&ParamCoercions>
pub fn param_coercions(&self, index: usize) -> Option<&ParamCoercions>
The contextual literal substitutions for an argument position.
Sourcepub fn return_type(&self) -> Option<&str>
pub fn return_type(&self) -> Option<&str>
The source-backed return type of a Value, when available.
Sourcepub fn is_variadic(&self) -> bool
pub fn is_variadic(&self) -> bool
Whether the final declared parameter repeats for additional arguments.