Skip to main content

Semantic

Trait Semantic 

Source
pub trait Semantic: Sized {
    type Output;

    // Required methods
    fn semantic(
        self,
        registry: &SemanticRegistry,
        spec: NodeSpec,
    ) -> Self::Output;
    fn semantic_in(self, cx: &App, spec: NodeSpec) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn semantic(self, registry: &SemanticRegistry, spec: NodeSpec) -> Self::Output

Source

fn semantic_in(self, cx: &App, spec: NodeSpec) -> Self::Output

Registers into the global registry when installed. Platform accessibility remains active when a host opts out of test semantics.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Semantic for Div

Source§

type Output = Stateful<Div>

Source§

fn semantic(self, registry: &SemanticRegistry, spec: NodeSpec) -> Self::Output

Source§

fn semantic_in(self, cx: &App, spec: NodeSpec) -> Self::Output

Source§

impl Semantic for Stateful<Div>

Source§

type Output = Stateful<Div>

Source§

fn semantic(self, registry: &SemanticRegistry, spec: NodeSpec) -> Self::Output

Source§

fn semantic_in(self, cx: &App, spec: NodeSpec) -> Self::Output

Implementors§