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§
Sourcefn new_static_block_keep_name<B: GetAstBuilder<'ast> + GetAllocator<'ast>>(
name: &str,
callee: Expression<'ast>,
builder: &B,
) -> ClassElement<'ast>
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".