Skip to main content

ClassElementFactoryExt

Trait ClassElementFactoryExt 

Source
pub trait ClassElementFactoryExt<'ast> {
    // Provided method
    fn new_static_block_keep_name<B: GetAstBuilder<'ast> + GetAllocator<'ast>>(
        name: &str,
        callee: Expression<'ast>,
        builder: &B,
    ) -> ClassElement<'ast> { ... }
}
Expand description

rolldown’s recurring ClassElement constructions.

Provided Methods§

Source

fn new_static_block_keep_name<B: GetAstBuilder<'ast> + GetAllocator<'ast>>( name: &str, callee: Expression<'ast>, builder: &B, ) -> ClassElement<'ast>

static { <callee>(this, "<name>"); }

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<'ast> ClassElementFactoryExt<'ast> for ClassElement<'ast>

Implementors§