pub enum CstNode<'ast> {
Show 38 variants
ExprConstantNumber(CstExprConstantNumber<'ast>),
ExprConstantInteger(CstExprConstantInteger<'ast>),
ExprConstantString(CstExprConstantString<'ast>),
ExprCall(CstExprCall),
ExprGroup(CstExprGroup),
ExprIndexExpr(CstExprIndexExpr),
ExprFunction(CstExprFunction<'ast>),
Attribute(CstAttribute),
ExprTable(CstExprTable),
ExprOp(CstExprOp),
ExprTypeAssertion(CstExprTypeAssertion),
ExprIfElse(CstExprIfElse),
ExprInterpString(CstExprInterpString<'ast>),
ExprExplicitTypeInstantiation(CstExprExplicitTypeInstantiation),
StatDo(CstStatDo),
StatRepeat(CstStatRepeat),
StatReturn(CstStatReturn),
StatLocal(CstStatLocal<'ast>),
StatFor(CstStatFor),
StatForIn(CstStatForIn<'ast>),
StatAssign(CstStatAssign<'ast>),
StatCompoundAssign(CstStatCompoundAssign),
StatFunction(CstStatFunction),
StatLocalFunction(CstStatLocalFunction),
GenericType(CstGenericType),
GenericTypePack(CstGenericTypePack),
StatTypeAlias(CstStatTypeAlias),
StatTypeFunction(CstStatTypeFunction),
TypeReference(CstTypeReference),
TypeGroup(CstTypeGroup),
TypeTable(CstTypeTable<'ast>),
TypeFunction(CstTypeFunction),
TypeTypeof(CstTypeTypeof),
TypeUnion(CstTypeUnion),
TypeIntersection(CstTypeIntersection),
TypeSingletonString(CstTypeSingletonString<'ast>),
TypePackExplicit(CstTypePackExplicit),
TypePackGeneric(CstTypePackGeneric),
}Variants§
ExprConstantNumber(CstExprConstantNumber<'ast>)
ExprConstantInteger(CstExprConstantInteger<'ast>)
ExprConstantString(CstExprConstantString<'ast>)
ExprCall(CstExprCall)
ExprGroup(CstExprGroup)
ExprIndexExpr(CstExprIndexExpr)
ExprFunction(CstExprFunction<'ast>)
Attribute(CstAttribute)
ExprTable(CstExprTable)
ExprOp(CstExprOp)
ExprTypeAssertion(CstExprTypeAssertion)
ExprIfElse(CstExprIfElse)
ExprInterpString(CstExprInterpString<'ast>)
ExprExplicitTypeInstantiation(CstExprExplicitTypeInstantiation)
StatDo(CstStatDo)
StatRepeat(CstStatRepeat)
StatReturn(CstStatReturn)
StatLocal(CstStatLocal<'ast>)
StatFor(CstStatFor)
StatForIn(CstStatForIn<'ast>)
StatAssign(CstStatAssign<'ast>)
StatCompoundAssign(CstStatCompoundAssign)
StatFunction(CstStatFunction)
StatLocalFunction(CstStatLocalFunction)
GenericType(CstGenericType)
GenericTypePack(CstGenericTypePack)
StatTypeAlias(CstStatTypeAlias)
StatTypeFunction(CstStatTypeFunction)
TypeReference(CstTypeReference)
TypeGroup(CstTypeGroup)
TypeTable(CstTypeTable<'ast>)
TypeFunction(CstTypeFunction)
TypeTypeof(CstTypeTypeof)
TypeUnion(CstTypeUnion)
TypeIntersection(CstTypeIntersection)
TypeSingletonString(CstTypeSingletonString<'ast>)
TypePackExplicit(CstTypePackExplicit)
TypePackGeneric(CstTypePackGeneric)
Trait Implementations§
impl<'ast> StructuralPartialEq for CstNode<'ast>
Auto Trait Implementations§
impl<'ast> Freeze for CstNode<'ast>
impl<'ast> RefUnwindSafe for CstNode<'ast>
impl<'ast> Send for CstNode<'ast>
impl<'ast> Sync for CstNode<'ast>
impl<'ast> Unpin for CstNode<'ast>
impl<'ast> UnsafeUnpin for CstNode<'ast>
impl<'ast> UnwindSafe for CstNode<'ast>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more