pub enum GenericASTNode {
Show 28 variants File(FileDeclaration), Module(ModuleDeclaration), Struct(StructDeclaration), Enum(EnumDeclaration), TypedParameter(TypedParameter), UntypedParameter(UntypedParameter), TypeName(TypeName), Variable(Variable), InitializedVariable(InitializedVariable), BodiedFunction(BodiedFunctionDeclaration), ExpressionBlock(ExpressionBlock), Application(Application), Lambda(Lambda), Reference(Reference), Access(Access), Number(NumberLiteral), Char(CharLiteral), String(StringLiteral), Tuple(TupleLiteral), If(IfExpression), Elif(ElifExpression), Else(ElseExpression), Binary(Binary), Unary(Unary), AbstractFunction(AbstractFunctionDeclaration), ProdType(ProdType), SumType(SumType), Identifier(Identifier),
}

Variants§

§

File(FileDeclaration)

§

Module(ModuleDeclaration)

§

Struct(StructDeclaration)

§

Enum(EnumDeclaration)

§

TypedParameter(TypedParameter)

§

UntypedParameter(UntypedParameter)

§

TypeName(TypeName)

§

Variable(Variable)

§

InitializedVariable(InitializedVariable)

§

BodiedFunction(BodiedFunctionDeclaration)

§

ExpressionBlock(ExpressionBlock)

§

Application(Application)

§

Lambda(Lambda)

§

Reference(Reference)

§

Access(Access)

§

Number(NumberLiteral)

§

Char(CharLiteral)

§

String(StringLiteral)

§

Tuple(TupleLiteral)

§

If(IfExpression)

§

Elif(ElifExpression)

§

Else(ElseExpression)

§

Binary(Binary)

§

Unary(Unary)

§

AbstractFunction(AbstractFunctionDeclaration)

§

ProdType(ProdType)

§

SumType(SumType)

§

Identifier(Identifier)

Trait Implementations§

source§

impl Debug for GenericASTNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<AbstractFunctionDeclaration> for GenericASTNode

source§

fn from(original: AbstractFunctionDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Access> for GenericASTNode

source§

fn from(original: Access) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Application> for GenericASTNode

source§

fn from(original: Application) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Binary> for GenericASTNode

source§

fn from(original: Binary) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<BlockLevel> for GenericASTNode

source§

fn from(original: BlockLevel) -> Self

Converts to this type from the input type.
source§

impl From<BodiedFunctionDeclaration> for GenericASTNode

source§

fn from(original: BodiedFunctionDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Body> for GenericASTNode

source§

fn from(original: Body) -> Self

Converts to this type from the input type.
source§

impl From<CharLiteral> for GenericASTNode

source§

fn from(original: CharLiteral) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<ElifExpression> for GenericASTNode

source§

fn from(original: ElifExpression) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<ElseExpression> for GenericASTNode

source§

fn from(original: ElseExpression) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<EnumDeclaration> for GenericASTNode

source§

fn from(original: EnumDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Expression> for GenericASTNode

source§

fn from(original: Expression) -> Self

Converts to this type from the input type.
source§

impl From<ExpressionBlock> for GenericASTNode

source§

fn from(original: ExpressionBlock) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<FileDeclaration> for GenericASTNode

source§

fn from(original: FileDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<GenericASTNode> for BlockLevel

source§

fn from(original: GenericASTNode) -> BlockLevel

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Body

source§

fn from(original: GenericASTNode) -> Body

Converts to this type from the input type.
source§

impl From<GenericASTNode> for CodeFlow

source§

fn from(original: GenericASTNode) -> CodeFlow

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Expression

source§

fn from(original: GenericASTNode) -> Expression

Converts to this type from the input type.
source§

impl From<GenericASTNode> for FunctionDeclaration

source§

fn from(original: GenericASTNode) -> FunctionDeclaration

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Literal

source§

fn from(original: GenericASTNode) -> Literal

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Operation

source§

fn from(original: GenericASTNode) -> Operation

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Parameter

source§

fn from(original: GenericASTNode) -> Parameter

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Term

source§

fn from(original: GenericASTNode) -> Term

Converts to this type from the input type.
source§

impl From<GenericASTNode> for TopLevel

source§

fn from(original: GenericASTNode) -> TopLevel

Converts to this type from the input type.
source§

impl From<GenericASTNode> for Type

source§

fn from(original: GenericASTNode) -> Type

Converts to this type from the input type.
source§

impl From<Identifier> for GenericASTNode

source§

fn from(original: Identifier) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<IfExpression> for GenericASTNode

source§

fn from(original: IfExpression) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<InitializedVariable> for GenericASTNode

source§

fn from(original: InitializedVariable) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Lambda> for GenericASTNode

source§

fn from(original: Lambda) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Literal> for GenericASTNode

source§

fn from(original: Literal) -> Self

Converts to this type from the input type.
source§

impl From<ModuleDeclaration> for GenericASTNode

source§

fn from(original: ModuleDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<NumberLiteral> for GenericASTNode

source§

fn from(original: NumberLiteral) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Operation> for GenericASTNode

source§

fn from(original: Operation) -> Self

Converts to this type from the input type.
source§

impl From<Parameter> for GenericASTNode

source§

fn from(original: Parameter) -> Self

Converts to this type from the input type.
source§

impl From<ProdType> for GenericASTNode

source§

fn from(original: ProdType) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Reference> for GenericASTNode

source§

fn from(original: Reference) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<StringLiteral> for GenericASTNode

source§

fn from(original: StringLiteral) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<StructDeclaration> for GenericASTNode

source§

fn from(original: StructDeclaration) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<SumType> for GenericASTNode

source§

fn from(original: SumType) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Term> for GenericASTNode

source§

fn from(original: Term) -> Self

Converts to this type from the input type.
source§

impl From<TopLevel> for GenericASTNode

source§

fn from(original: TopLevel) -> Self

Converts to this type from the input type.
source§

impl From<TupleLiteral> for GenericASTNode

source§

fn from(original: TupleLiteral) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Type> for GenericASTNode

source§

fn from(original: Type) -> Self

Converts to this type from the input type.
source§

impl From<TypeName> for GenericASTNode

source§

fn from(original: TypeName) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<TypedParameter> for GenericASTNode

source§

fn from(original: TypedParameter) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Unary> for GenericASTNode

source§

fn from(original: Unary) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<UntypedParameter> for GenericASTNode

source§

fn from(original: UntypedParameter) -> GenericASTNode

Converts to this type from the input type.
source§

impl From<Variable> for GenericASTNode

source§

fn from(original: Variable) -> GenericASTNode

Converts to this type from the input type.
source§

impl Named for GenericASTNode

source§

fn name(&self) -> &'static str

source§

impl NodeUnion for GenericASTNode

source§

impl PartialEq for GenericASTNode

source§

fn eq(&self, other: &GenericASTNode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a AOperation

§

type Error = <&'a Operation as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime AbstractFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Access

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Application

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Binary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a BlockLevel

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime BodiedFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Body

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime CharLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a CodeFlow

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ElifExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ElseExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime EnumDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Expression

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ExpressionBlock

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime FileDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a FunctionDeclaration

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Identifier

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime IfExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime InitializedVariable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Lambda

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a LeftOperation

§

type Error = <&'a Operation as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Literal

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ModuleDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime NumberLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Operation

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Parameter

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime ProdType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Reference

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a RightOperation

§

type Error = <&'a Operation as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime StringLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime StructDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime SumType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Term

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a TopLevel

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime TupleLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a GenericASTNode> for &'a Type

§

type Error = <&'a GenericASTNode as TryFrom<&'a GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime TypeName

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime TypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Unary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime UntypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Variable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut AOperation

§

type Error = <&'a mut Operation as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut AbstractFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Access

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Application

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Binary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut BlockLevel

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut BodiedFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Body

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut CharLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut CodeFlow

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ElifExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ElseExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut EnumDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Expression

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ExpressionBlock

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut FileDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut FunctionDeclaration

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Identifier

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut IfExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut InitializedVariable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Lambda

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut LeftOperation

§

type Error = <&'a mut Operation as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Literal

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ModuleDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut NumberLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Operation

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Parameter

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut ProdType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Reference

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut RightOperation

§

type Error = <&'a mut Operation as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut StringLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut StructDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut SumType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Term

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut TopLevel

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut TupleLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut GenericASTNode> for &'a mut Type

§

type Error = <&'a mut GenericASTNode as TryFrom<&'a mut GenericASTNode>>::Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a mut GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut TypeName

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut TypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Unary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut UntypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Variable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from( value: &'__deriveMoreLifetime mut GenericASTNode ) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for AbstractFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Access

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Application

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Binary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for BodiedFunctionDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for CharLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for ElifExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for ElseExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for EnumDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for ExpressionBlock

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for FileDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Identifier

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for IfExpression

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for InitializedVariable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Lambda

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for ModuleDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for NumberLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for ProdType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Reference

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for StringLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for StructDeclaration

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for SumType

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for TupleLiteral

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for TypeName

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for TypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Unary

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for UntypedParameter

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<GenericASTNode> for Variable

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: GenericASTNode) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for GenericASTNode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more