Skip to main content

JsxExt

Trait JsxExt 

Source
pub trait JsxExt<'ast> {
    type AstKind;

    // Required method
    fn from_ast(
        member_expr: Self::AstKind,
        allocator: &'ast Allocator,
    ) -> Option<Self>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn from_ast( member_expr: Self::AstKind, allocator: &'ast Allocator, ) -> Option<Self>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'ast> JsxExt<'ast> for JSXMemberExpression<'ast>

Source§

type AstKind = StaticMemberExpression<'ast>

Source§

fn from_ast( member_expr: StaticMemberExpression<'ast>, allocator: &'ast Allocator, ) -> Option<Self>
where Self: Sized,

Source§

impl<'ast> JsxExt<'ast> for JSXMemberExpressionObject<'ast>

Source§

type AstKind = Expression<'ast>

Source§

fn from_ast( member_expr: Expression<'ast>, allocator: &'ast Allocator, ) -> Option<Self>

Implementors§