Enum AnyNode

Source
pub enum AnyNode {
Show 26 variants FileDecl(FileDecl), ModDecl(ModDecl), StructDecl(StructDecl), EnumDecl(EnumDecl), TyParam(TyParam), NonTyParam(NonTyParam), TyName(TyName), VarDecl(VarDecl), InitVar(InitVar), BodyFnDecl(BodyFnDecl), Exprs(Exprs), Appl(Appl), Lambda(Lambda), Ref(Ref), Acc(Acc), NumLit(NumLit), CharLit(CharLit), StrLit(StrLit), TupleLit(TupleLit), IfExpr(IfExpr), ElifExpr(ElifExpr), ElseExpr(ElseExpr), BinExpr(BinExpr), UnExpr(UnExpr), AbstFnDecl(AbstFnDecl), ProdTy(ProdTy),
}

Variants§

§

FileDecl(FileDecl)

§

ModDecl(ModDecl)

§

StructDecl(StructDecl)

§

EnumDecl(EnumDecl)

§

TyParam(TyParam)

§

NonTyParam(NonTyParam)

§

TyName(TyName)

§

VarDecl(VarDecl)

§

InitVar(InitVar)

§

BodyFnDecl(BodyFnDecl)

§

Exprs(Exprs)

§

Appl(Appl)

§

Lambda(Lambda)

§

Ref(Ref)

§

Acc(Acc)

§

NumLit(NumLit)

§

CharLit(CharLit)

§

StrLit(StrLit)

§

TupleLit(TupleLit)

§

IfExpr(IfExpr)

§

ElifExpr(ElifExpr)

§

ElseExpr(ElseExpr)

§

BinExpr(BinExpr)

§

UnExpr(UnExpr)

§

AbstFnDecl(AbstFnDecl)

§

ProdTy(ProdTy)

Implementations§

Source§

impl AnyNode

Source

pub fn describe(&self) -> AnyNodeD

Source

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

Source

pub fn try_cast<T>(&self) -> Option<&T>

Source

pub fn tru_cast_mut<T>(&mut self) -> Option<&mut T>

Trait Implementations§

Source§

impl Debug for AnyNode

Source§

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

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

impl<'_derivative_strum> From<&'_derivative_strum AnyNode> for &'static str

Source§

fn from(x: &'_derivative_strum AnyNode) -> &'static str

Converts to this type from the input type.
Source§

impl<'_enum> From<&'_enum AnyNode> for AnyNodeD

Source§

fn from(val: &'_enum AnyNode) -> AnyNodeD

Converts to this type from the input type.
Source§

impl From<AbstFnDecl> for AnyNode

Source§

fn from(original: AbstFnDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Acc> for AnyNode

Source§

fn from(original: Acc) -> AnyNode

Converts to this type from the input type.
Source§

impl From<AnyNode> for &'static str

Source§

fn from(x: AnyNode) -> &'static str

Converts to this type from the input type.
Source§

impl From<AnyNode> for AnyNodeD

Source§

fn from(val: AnyNode) -> AnyNodeD

Converts to this type from the input type.
Source§

impl From<Appl> for AnyNode

Source§

fn from(original: Appl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BinExpr> for AnyNode

Source§

fn from(original: BinExpr) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BlockLevel> for AnyNode

Source§

fn from(value: BlockLevel) -> Self

Converts to this type from the input type.
Source§

impl From<Body> for AnyNode

Source§

fn from(value: Body) -> Self

Converts to this type from the input type.
Source§

impl From<BodyFnDecl> for AnyNode

Source§

fn from(original: BodyFnDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<CharLit> for AnyNode

Source§

fn from(original: CharLit) -> AnyNode

Converts to this type from the input type.
Source§

impl From<CodeFlow> for AnyNode

Source§

fn from(value: CodeFlow) -> Self

Converts to this type from the input type.
Source§

impl From<ElifExpr> for AnyNode

Source§

fn from(original: ElifExpr) -> AnyNode

Converts to this type from the input type.
Source§

impl From<ElseExpr> for AnyNode

Source§

fn from(original: ElseExpr) -> AnyNode

Converts to this type from the input type.
Source§

impl From<EnumDecl> for AnyNode

Source§

fn from(original: EnumDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Expression> for AnyNode

Source§

fn from(value: Expression) -> Self

Converts to this type from the input type.
Source§

impl From<Exprs> for AnyNode

Source§

fn from(original: Exprs) -> AnyNode

Converts to this type from the input type.
Source§

impl From<FileDecl> for AnyNode

Source§

fn from(original: FileDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<FnDecl> for AnyNode

Source§

fn from(value: FnDecl) -> Self

Converts to this type from the input type.
Source§

impl From<IfExpr> for AnyNode

Source§

fn from(original: IfExpr) -> AnyNode

Converts to this type from the input type.
Source§

impl From<InitVar> for AnyNode

Source§

fn from(original: InitVar) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Lambda> for AnyNode

Source§

fn from(original: Lambda) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Lit> for AnyNode

Source§

fn from(value: Lit) -> Self

Converts to this type from the input type.
Source§

impl From<ModDecl> for AnyNode

Source§

fn from(original: ModDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<NonTyParam> for AnyNode

Source§

fn from(original: NonTyParam) -> AnyNode

Converts to this type from the input type.
Source§

impl From<NumLit> for AnyNode

Source§

fn from(original: NumLit) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Operation> for AnyNode

Source§

fn from(value: Operation) -> Self

Converts to this type from the input type.
Source§

impl From<Param> for AnyNode

Source§

fn from(value: Param) -> Self

Converts to this type from the input type.
Source§

impl From<ProdTy> for AnyNode

Source§

fn from(original: ProdTy) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Ref> for AnyNode

Source§

fn from(original: Ref) -> AnyNode

Converts to this type from the input type.
Source§

impl From<StrLit> for AnyNode

Source§

fn from(original: StrLit) -> AnyNode

Converts to this type from the input type.
Source§

impl From<StructDecl> for AnyNode

Source§

fn from(original: StructDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Term> for AnyNode

Source§

fn from(value: Term) -> Self

Converts to this type from the input type.
Source§

impl From<TopLevel> for AnyNode

Source§

fn from(value: TopLevel) -> Self

Converts to this type from the input type.
Source§

impl From<TupleLit> for AnyNode

Source§

fn from(original: TupleLit) -> AnyNode

Converts to this type from the input type.
Source§

impl From<TyName> for AnyNode

Source§

fn from(original: TyName) -> AnyNode

Converts to this type from the input type.
Source§

impl From<TyParam> for AnyNode

Source§

fn from(original: TyParam) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Type> for AnyNode

Source§

fn from(value: Type) -> Self

Converts to this type from the input type.
Source§

impl From<UnExpr> for AnyNode

Source§

fn from(original: UnExpr) -> AnyNode

Converts to this type from the input type.
Source§

impl From<VarDecl> for AnyNode

Source§

fn from(original: VarDecl) -> AnyNode

Converts to this type from the input type.
Source§

impl PartialEq for AnyNode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SubEnum for AnyNode

Source§

const VARIANTS: &'static [AnyNodeD] = AnyNodeD::VARIANTS

Source§

fn contains(node: &AnyNode) -> bool

Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime AbstFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime Acc

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime Appl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime BinExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime BodyFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime CharLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ElifExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ElseExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime EnumDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime Exprs

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime FileDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a AnyNode> for &'a FnDecl

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime IfExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime InitVar

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a AnyNode> for &'a Lit

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ModDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime NonTyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime NumLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a AnyNode> for &'a Param

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime ProdTy

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime Ref

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime StrLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime StructDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime TupleLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime TyName

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime TyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime UnExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AnyNode> for &'__deriveMoreLifetime VarDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut AbstFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut Acc

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut Appl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut BinExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut BodyFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut CharLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ElifExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ElseExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut EnumDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut Exprs

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut FileDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a mut AnyNode> for &'a mut FnDecl

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut IfExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut InitVar

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a mut AnyNode> for &'a mut Lit

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ModDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut NonTyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut NumLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'a> TryFrom<&'a mut AnyNode> for &'a mut Param

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut ProdTy

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut Ref

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut StrLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut StructDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut TupleLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut TyName

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut TyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

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

Source§

type Error = Skip<Infallible>

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut UnExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AnyNode> for &'__deriveMoreLifetime mut VarDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for AbstFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for Acc

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for Appl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for BinExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for BodyFnDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for CharLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for ElifExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for ElseExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for EnumDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for Exprs

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for FileDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for IfExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for InitVar

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for Lambda

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for ModDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for NonTyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for NumLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for ProdTy

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for Ref

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for StrLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for StructDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for TupleLit

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for TyName

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for TyParam

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for UnExpr

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<AnyNode> for VarDecl

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl VariantNames for AnyNode

Source§

const VARIANTS: &'static [&'static str]

Names of the variants of this enum
Source§

impl StructuralPartialEq for AnyNode

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, U> ConvertibleToMut<U> for T

Source§

fn try_as_mut(&mut self) -> Option<&mut U>

Source§

impl<T, U> ConvertibleToRef<U> for T
where &'a U: for<'a> TryFrom<&'a T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Identifiable for T
where T: Identifiable,

Source§

fn get_id(&self) -> NodeId<T>

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>,

Source§

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>,

Source§

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