pub struct LanguageCapability {Show 13 fields
pub id: &'static str,
pub aliases: &'static [&'static str],
pub parser_support: LanguageParserSupport,
pub symbol_parser: SymbolParserOwner,
pub semantic_provider: SemanticProviderOwner,
pub embedded_language: Option<EmbeddedLanguageCapability>,
pub structural_summary: Option<StructuralSummaryOwner>,
pub optional_pack: Option<&'static str>,
pub support: LanguageCapabilitySupport,
pub accepted_minimum: LanguageCapabilitySupport,
pub fixtures: LanguageCapabilityFixtures,
pub provenance: CapabilityProvenance,
pub required_platforms: RequiredPlatformSet,
}Expand description
One accepted canonical language capability row.
Fields§
§id: &'static strStable canonical language or file-family identifier.
aliases: &'static [&'static str]Compatibility aliases accepted only for explicit selection.
parser_support: LanguageParserSupportCompatibility parser tier.
symbol_parser: SymbolParserOwnerClosed symbol parser owner.
semantic_provider: SemanticProviderOwnerClosed project-wide semantic provider owner.
embedded_language: Option<EmbeddedLanguageCapability>Optional bounded host-to-embedded provider pairing.
structural_summary: Option<StructuralSummaryOwner>Optional structural summary owner.
optional_pack: Option<&'static str>Optional broad-parser pack owner; absent for the 0.3.26 core floor.
support: LanguageCapabilitySupportCurrently achieved independent support.
accepted_minimum: LanguageCapabilitySupportAccepted minimum that cannot shrink silently in this set version.
fixtures: LanguageCapabilityFixturesNatural detector fixtures.
provenance: CapabilityProvenanceParser or ProjectAtlas provenance input.
required_platforms: RequiredPlatformSetRequired release platforms.
Implementations§
Source§impl LanguageCapability
impl LanguageCapability
Sourcepub const fn effective_semantic_provider(self) -> Option<SemanticProviderOwner>
pub const fn effective_semantic_provider(self) -> Option<SemanticProviderOwner>
Return the accepted semantic provider for direct or embedded source.
Direct providers take precedence. Embedded hosts expose their provider only for admitted embedded facts; callers remain responsible for not treating the host itself as an ordinary module without such facts.
Trait Implementations§
Source§impl Clone for LanguageCapability
impl Clone for LanguageCapability
Source§fn clone(&self) -> LanguageCapability
fn clone(&self) -> LanguageCapability
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LanguageCapability
impl Debug for LanguageCapability
Source§impl PartialEq for LanguageCapability
impl PartialEq for LanguageCapability
Source§impl Serialize for LanguageCapability
impl Serialize for LanguageCapability
impl Copy for LanguageCapability
impl Eq for LanguageCapability
impl StructuralPartialEq for LanguageCapability
Auto Trait Implementations§
impl Freeze for LanguageCapability
impl RefUnwindSafe for LanguageCapability
impl Send for LanguageCapability
impl Sync for LanguageCapability
impl Unpin for LanguageCapability
impl UnwindSafe for LanguageCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.