Skip to main content

StyleIntelligenceProvider

Trait StyleIntelligenceProvider 

Source
pub trait StyleIntelligenceProvider: Sync {
    // Required methods
    fn metadata(&self) -> &'static StyleIntelligenceProviderMetadataV0;
    fn class_universe(
        &self,
        snapshot: &StyleIntelligenceSnapshotV0<'_>,
    ) -> StyleIntelligenceClassUniverseV0;
    fn completions(
        &self,
        snapshot: &StyleIntelligenceSnapshotV0<'_>,
        context: StyleIntelligenceSourceContextV0,
    ) -> Vec<StyleIntelligenceCompletionV0>;
    fn hover(
        &self,
        snapshot: &StyleIntelligenceSnapshotV0<'_>,
        context: StyleIntelligenceSourceContextV0,
    ) -> Option<StyleIntelligenceHoverV0>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§