CloneIn

Trait CloneIn 

Source
pub trait CloneIn<'new_alloc>: Sized {
    type Cloned;

    // Required method
    fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned;

    // Provided method
    fn clone_in_with_semantic_ids(
        &self,
        allocator: &'new_alloc Allocator,
    ) -> Self::Cloned { ... }
}
Expand description

A trait to explicitly clone an object into an arena allocator.

As a convention Cloned associated type should always be the same as Self, It’d only differ in the lifetime, Here’s an example:


impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for Struct<'old_alloc> {
    type Cloned = Struct<'new_alloc>;
    fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned {
        Struct { a: self.a.clone_in(allocator), b: self.b.clone_in(allocator) }
    }
}

Implementations of this trait on non-allocated items usually short-circuit to Clone::clone; However, it isn’t guaranteed.

Required Associated Types§

Source

type Cloned

The type of the cloned object.

This should always be Self with a different lifetime.

Required Methods§

Source

fn clone_in(&self, allocator: &'new_alloc Allocator) -> Self::Cloned

Clone self into the given allocator. allocator may be the same one that self is already in.

Provided Methods§

Source

fn clone_in_with_semantic_ids( &self, allocator: &'new_alloc Allocator, ) -> Self::Cloned

Almost identical as clone_in, but for some special type, it will also clone the semantic ids. Please use this method only if you make sure semantic info is synced with the ast node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'alloc> CloneIn<'alloc> for bool

Source§

type Cloned = bool

Source§

fn clone_in(&self, _: &'alloc Allocator) -> bool

Source§

impl<'alloc> CloneIn<'alloc> for char

Source§

type Cloned = char

Source§

fn clone_in(&self, _: &'alloc Allocator) -> char

Source§

impl<'alloc> CloneIn<'alloc> for f32

Source§

type Cloned = f32

Source§

fn clone_in(&self, _: &'alloc Allocator) -> f32

Source§

impl<'alloc> CloneIn<'alloc> for f64

Source§

type Cloned = f64

Source§

fn clone_in(&self, _: &'alloc Allocator) -> f64

Source§

impl<'alloc> CloneIn<'alloc> for i8

Source§

type Cloned = i8

Source§

fn clone_in(&self, _: &'alloc Allocator) -> i8

Source§

impl<'alloc> CloneIn<'alloc> for i16

Source§

type Cloned = i16

Source§

fn clone_in(&self, _: &'alloc Allocator) -> i16

Source§

impl<'alloc> CloneIn<'alloc> for i32

Source§

type Cloned = i32

Source§

fn clone_in(&self, _: &'alloc Allocator) -> i32

Source§

impl<'alloc> CloneIn<'alloc> for i64

Source§

type Cloned = i64

Source§

fn clone_in(&self, _: &'alloc Allocator) -> i64

Source§

impl<'alloc> CloneIn<'alloc> for i128

Source§

type Cloned = i128

Source§

fn clone_in(&self, _: &'alloc Allocator) -> i128

Source§

impl<'alloc> CloneIn<'alloc> for isize

Source§

type Cloned = isize

Source§

fn clone_in(&self, _: &'alloc Allocator) -> isize

Source§

impl<'alloc> CloneIn<'alloc> for u8

Source§

type Cloned = u8

Source§

fn clone_in(&self, _: &'alloc Allocator) -> u8

Source§

impl<'alloc> CloneIn<'alloc> for u16

Source§

type Cloned = u16

Source§

fn clone_in(&self, _: &'alloc Allocator) -> u16

Source§

impl<'alloc> CloneIn<'alloc> for u32

Source§

type Cloned = u32

Source§

fn clone_in(&self, _: &'alloc Allocator) -> u32

Source§

impl<'alloc> CloneIn<'alloc> for u64

Source§

type Cloned = u64

Source§

fn clone_in(&self, _: &'alloc Allocator) -> u64

Source§

impl<'alloc> CloneIn<'alloc> for u128

Source§

type Cloned = u128

Source§

fn clone_in(&self, _: &'alloc Allocator) -> u128

Source§

impl<'alloc> CloneIn<'alloc> for usize

Source§

type Cloned = usize

Source§

fn clone_in(&self, _: &'alloc Allocator) -> usize

Source§

impl<'alloc, T> CloneIn<'alloc> for Cell<T>
where T: Copy,

Source§

type Cloned = Cell<T>

Source§

fn clone_in(&self, _: &'alloc Allocator) -> <Cell<T> as CloneIn<'alloc>>::Cloned

Source§

impl<'alloc, T, C> CloneIn<'alloc> for Option<T>
where T: CloneIn<'alloc, Cloned = C>,

Source§

type Cloned = Option<C>

Source§

fn clone_in( &self, allocator: &'alloc Allocator, ) -> <Option<T> as CloneIn<'alloc>>::Cloned

Source§

fn clone_in_with_semantic_ids( &self, allocator: &'alloc Allocator, ) -> <Option<T> as CloneIn<'alloc>>::Cloned

Source§

impl<'new_alloc> CloneIn<'new_alloc> for &str

Source§

type Cloned = &'new_alloc str

Source§

fn clone_in( &self, allocator: &'new_alloc Allocator, ) -> <&str as CloneIn<'new_alloc>>::Cloned

Implementors§

Source§

impl<'a> CloneIn<'a> for SourceType

Source§

impl<'a> CloneIn<'a> for Span

Source§

impl<'alloc> CloneIn<'alloc> for CommentNewlines

Source§

impl<'alloc> CloneIn<'alloc> for RegExpFlags

Source§

impl<'alloc> CloneIn<'alloc> for Modifier

Source§

impl<'alloc> CloneIn<'alloc> for ReferenceFlags

Source§

impl<'alloc> CloneIn<'alloc> for ReferenceId

Source§

impl<'alloc> CloneIn<'alloc> for ScopeId

Source§

impl<'alloc> CloneIn<'alloc> for SymbolId

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AccessorPropertyType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Argument<'_>

Source§

type Cloned = Argument<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ArrayExpressionElement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTarget<'_>

Source§

type Cloned = AssignmentTarget<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetMaybeDefault<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPattern<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetProperty<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BigintBase

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BinaryOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BindingPatternKind<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ChainElement<'_>

Source§

type Cloned = ChainElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ClassElement<'_>

Source§

type Cloned = ClassElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ClassType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Declaration<'_>

Source§

type Cloned = Declaration<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclarationKind<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Expression<'_>

Source§

type Cloned = Expression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ForStatementInit<'_>

Source§

type Cloned = ForStatementInit<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ForStatementLeft<'_>

Source§

type Cloned = ForStatementLeft<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for FormalParameterKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for FunctionType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportAttributeKey<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportDeclarationSpecifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportOrExportKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportPhase

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeItem<'_>

Source§

type Cloned = JSXAttributeItem<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeName<'_>

Source§

type Cloned = JSXAttributeName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXAttributeValue<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXChild<'_>

Source§

type Cloned = JSXChild<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXElementName<'_>

Source§

type Cloned = JSXElementName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXExpression<'_>

Source§

type Cloned = JSXExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXMemberExpressionObject<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LogicalOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for MemberExpression<'_>

Source§

type Cloned = MemberExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for MethodDefinitionKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for MethodDefinitionType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ModuleDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ModuleExportName<'_>

Source§

type Cloned = ModuleExportName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for NumberBase

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ObjectPropertyKind<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PropertyDefinitionType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PropertyKey<'_>

Source§

type Cloned = PropertyKey<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PropertyKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for SimpleAssignmentTarget<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Statement<'_>

Source§

type Cloned = Statement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSAccessibility

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSEnumMemberName<'_>

Source§

type Cloned = TSEnumMemberName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSImportTypeQualifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSLiteral<'_>

Source§

type Cloned = TSLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSMappedTypeModifierOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSMethodSignatureKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationBody<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclarationName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleReference<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSSignature<'_>

Source§

type Cloned = TSSignature<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTupleElement<'_>

Source§

type Cloned = TSTupleElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSType<'_>

Source§

type Cloned = TSType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeName<'_>

Source§

type Cloned = TSTypeName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeOperatorOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypePredicateName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeQueryExprName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for UnaryOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for UpdateOperator

Source§

impl<'new_alloc> CloneIn<'new_alloc> for VariableDeclarationKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for WithClauseKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CommentContent

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CommentKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CommentPosition

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BoundaryAssertionKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassContents<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassContentsKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassEscapeKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LookAroundAssertionKind

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Term<'_>

Source§

type Cloned = Term<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AccessorProperty<'_>

Source§

type Cloned = AccessorProperty<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ArrayAssignmentTarget<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ArrayExpression<'_>

Source§

type Cloned = ArrayExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ArrayPattern<'_>

Source§

type Cloned = ArrayPattern<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ArrowFunctionExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentPattern<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyIdentifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetPropertyProperty<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetRest<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AssignmentTargetWithDefault<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for AwaitExpression<'_>

Source§

type Cloned = AwaitExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BigIntLiteral<'_>

Source§

type Cloned = BigIntLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BinaryExpression<'_>

Source§

type Cloned = BinaryExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BindingIdentifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BindingPattern<'_>

Source§

type Cloned = BindingPattern<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BindingProperty<'_>

Source§

type Cloned = BindingProperty<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BindingRestElement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BlockStatement<'_>

Source§

type Cloned = BlockStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BooleanLiteral

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BreakStatement<'_>

Source§

type Cloned = BreakStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CallExpression<'_>

Source§

type Cloned = CallExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CatchClause<'_>

Source§

type Cloned = CatchClause<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CatchParameter<'_>

Source§

type Cloned = CatchParameter<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ChainExpression<'_>

Source§

type Cloned = ChainExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Class<'_>

Source§

type Cloned = Class<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ClassBody<'_>

Source§

type Cloned = ClassBody<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ComputedMemberExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ConditionalExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ContinueStatement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for DebuggerStatement

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Decorator<'_>

Source§

type Cloned = Decorator<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Directive<'_>

Source§

type Cloned = Directive<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for DoWhileStatement<'_>

Source§

type Cloned = DoWhileStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Elision

Source§

impl<'new_alloc> CloneIn<'new_alloc> for EmptyStatement

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExportAllDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExportDefaultDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExportNamedDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExportSpecifier<'_>

Source§

type Cloned = ExportSpecifier<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ExpressionStatement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ForInStatement<'_>

Source§

type Cloned = ForInStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ForOfStatement<'_>

Source§

type Cloned = ForOfStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ForStatement<'_>

Source§

type Cloned = ForStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for FormalParameter<'_>

Source§

type Cloned = FormalParameter<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for FormalParameters<'_>

Source§

type Cloned = FormalParameters<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Function<'_>

Source§

type Cloned = Function<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for FunctionBody<'_>

Source§

type Cloned = FunctionBody<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Hashbang<'_>

Source§

type Cloned = Hashbang<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for IdentifierName<'_>

Source§

type Cloned = IdentifierName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for IdentifierReference<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for IfStatement<'_>

Source§

type Cloned = IfStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportAttribute<'_>

Source§

type Cloned = ImportAttribute<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportDefaultSpecifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportExpression<'_>

Source§

type Cloned = ImportExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportNamespaceSpecifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ImportSpecifier<'_>

Source§

type Cloned = ImportSpecifier<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSDocNonNullableType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSDocNullableType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSDocUnknownType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXAttribute<'_>

Source§

type Cloned = JSXAttribute<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXClosingElement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXClosingFragment

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXElement<'_>

Source§

type Cloned = JSXElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXEmptyExpression

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXExpressionContainer<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXFragment<'_>

Source§

type Cloned = JSXFragment<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXIdentifier<'_>

Source§

type Cloned = JSXIdentifier<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXMemberExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXNamespacedName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXOpeningElement<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXOpeningFragment

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXSpreadAttribute<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXSpreadChild<'_>

Source§

type Cloned = JSXSpreadChild<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for JSXText<'_>

Source§

type Cloned = JSXText<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LabelIdentifier<'_>

Source§

type Cloned = LabelIdentifier<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LabeledStatement<'_>

Source§

type Cloned = LabeledStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LogicalExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for MetaProperty<'_>

Source§

type Cloned = MetaProperty<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for MethodDefinition<'_>

Source§

type Cloned = MethodDefinition<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for NewExpression<'_>

Source§

type Cloned = NewExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for NullLiteral

Source§

impl<'new_alloc> CloneIn<'new_alloc> for NumericLiteral<'_>

Source§

type Cloned = NumericLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ObjectAssignmentTarget<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ObjectExpression<'_>

Source§

type Cloned = ObjectExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ObjectPattern<'_>

Source§

type Cloned = ObjectPattern<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ObjectProperty<'_>

Source§

type Cloned = ObjectProperty<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ParenthesizedExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PrivateFieldExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PrivateIdentifier<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PrivateInExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Program<'_>

Source§

type Cloned = Program<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for PropertyDefinition<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for RegExp<'_>

Source§

type Cloned = RegExp<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for RegExpLiteral<'_>

Source§

type Cloned = RegExpLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for RegExpPattern<'_>

Source§

type Cloned = RegExpPattern<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ReturnStatement<'_>

Source§

type Cloned = ReturnStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for SequenceExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for SpreadElement<'_>

Source§

type Cloned = SpreadElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for StaticBlock<'_>

Source§

type Cloned = StaticBlock<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for StaticMemberExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for StringLiteral<'_>

Source§

type Cloned = StringLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Super

Source§

impl<'new_alloc> CloneIn<'new_alloc> for SwitchCase<'_>

Source§

type Cloned = SwitchCase<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for SwitchStatement<'_>

Source§

type Cloned = SwitchStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSAnyKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSArrayType<'_>

Source§

type Cloned = TSArrayType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSAsExpression<'_>

Source§

type Cloned = TSAsExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSBigIntKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSBooleanKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSCallSignatureDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSClassImplements<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSConditionalType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSConstructSignatureDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSConstructorType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSEnumBody<'_>

Source§

type Cloned = TSEnumBody<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSEnumDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSEnumMember<'_>

Source§

type Cloned = TSEnumMember<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSExportAssignment<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSExternalModuleReference<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSFunctionType<'_>

Source§

type Cloned = TSFunctionType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSImportEqualsDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSImportType<'_>

Source§

type Cloned = TSImportType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSImportTypeQualifiedName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSIndexSignature<'_>

Source§

type Cloned = TSIndexSignature<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSIndexSignatureName<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSIndexedAccessType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSInferType<'_>

Source§

type Cloned = TSInferType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSInstantiationExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceBody<'_>

Source§

type Cloned = TSInterfaceBody<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSInterfaceHeritage<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSIntersectionType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSIntrinsicKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSLiteralType<'_>

Source§

type Cloned = TSLiteralType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSMappedType<'_>

Source§

type Cloned = TSMappedType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSMethodSignature<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleBlock<'_>

Source§

type Cloned = TSModuleBlock<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSModuleDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNamedTupleMember<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNamespaceExportDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNeverKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNonNullExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNullKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSNumberKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSObjectKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSOptionalType<'_>

Source§

type Cloned = TSOptionalType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSParenthesizedType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSPropertySignature<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSQualifiedName<'_>

Source§

type Cloned = TSQualifiedName<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSRestType<'_>

Source§

type Cloned = TSRestType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSSatisfiesExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSStringKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSSymbolKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTemplateLiteralType<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSThisParameter<'_>

Source§

type Cloned = TSThisParameter<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSThisType

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTupleType<'_>

Source§

type Cloned = TSTupleType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAliasDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAnnotation<'_>

Source§

type Cloned = TSTypeAnnotation<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeAssertion<'_>

Source§

type Cloned = TSTypeAssertion<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeLiteral<'_>

Source§

type Cloned = TSTypeLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeOperator<'_>

Source§

type Cloned = TSTypeOperator<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameter<'_>

Source§

type Cloned = TSTypeParameter<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameterDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeParameterInstantiation<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypePredicate<'_>

Source§

type Cloned = TSTypePredicate<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeQuery<'_>

Source§

type Cloned = TSTypeQuery<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSTypeReference<'_>

Source§

type Cloned = TSTypeReference<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSUndefinedKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSUnionType<'_>

Source§

type Cloned = TSUnionType<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSUnknownKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TSVoidKeyword

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TaggedTemplateExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TemplateElement<'_>

Source§

type Cloned = TemplateElement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TemplateElementValue<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TemplateLiteral<'_>

Source§

type Cloned = TemplateLiteral<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ThisExpression

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ThrowStatement<'_>

Source§

type Cloned = ThrowStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for TryStatement<'_>

Source§

type Cloned = TryStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for UnaryExpression<'_>

Source§

type Cloned = UnaryExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for UpdateExpression<'_>

Source§

type Cloned = UpdateExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for V8IntrinsicExpression<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for VariableDeclaration<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for VariableDeclarator<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for WhileStatement<'_>

Source§

type Cloned = WhileStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for WithClause<'_>

Source§

type Cloned = WithClause<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for WithStatement<'_>

Source§

type Cloned = WithStatement<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for YieldExpression<'_>

Source§

type Cloned = YieldExpression<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Comment

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Alternative<'_>

Source§

type Cloned = Alternative<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BoundaryAssertion

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CapturingGroup<'_>

Source§

type Cloned = CapturingGroup<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Character

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClass<'_>

Source§

type Cloned = CharacterClass<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassEscape

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CharacterClassRange

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ClassString<'_>

Source§

type Cloned = ClassString<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for ClassStringDisjunction<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Disjunction<'_>

Source§

type Cloned = Disjunction<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Dot

Source§

impl<'new_alloc> CloneIn<'new_alloc> for IgnoreGroup<'_>

Source§

type Cloned = IgnoreGroup<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for IndexedReference

Source§

impl<'new_alloc> CloneIn<'new_alloc> for LookAroundAssertion<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Modifiers

Source§

impl<'new_alloc> CloneIn<'new_alloc> for NamedReference<'_>

Source§

type Cloned = NamedReference<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Pattern<'_>

Source§

type Cloned = Pattern<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Quantifier<'_>

Source§

type Cloned = Quantifier<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for UnicodePropertyEscape<'_>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for Atom<'_>

Source§

type Cloned = Atom<'new_alloc>

Source§

impl<'new_alloc> CloneIn<'new_alloc> for CommentNodeId

Source§

impl<'new_alloc> CloneIn<'new_alloc> for BitSet<'_>

Source§

type Cloned = BitSet<'new_alloc>

Source§

impl<'new_alloc, K, V, CK, CV> CloneIn<'new_alloc> for HashMap<'_, K, V>
where K: CloneIn<'new_alloc, Cloned = CK>, V: CloneIn<'new_alloc, Cloned = CV>, CK: Hash + Eq,

Source§

type Cloned = HashMap<'new_alloc, CK, CV>

Source§

impl<'new_alloc, T, C> CloneIn<'new_alloc> for Box<'_, [T]>
where T: CloneIn<'new_alloc, Cloned = C>,

Source§

type Cloned = Box<'new_alloc, [C]>

Source§

impl<'new_alloc, T, C> CloneIn<'new_alloc> for Box<'_, T>
where T: CloneIn<'new_alloc, Cloned = C>,

Source§

type Cloned = Box<'new_alloc, C>

Source§

impl<'new_alloc, T, C> CloneIn<'new_alloc> for Vec<'_, T>
where T: CloneIn<'new_alloc, Cloned = C>, C: 'new_alloc,

Source§

type Cloned = Vec<'new_alloc, C>