Enum ra_ap_syntax::ast::Type[][src]

pub enum Type {
Show 14 variants ArrayType(ArrayType), DynTraitType(DynTraitType), FnPtrType(FnPtrType), ForType(ForType), ImplTraitType(ImplTraitType), InferType(InferType), MacroType(MacroType), NeverType(NeverType), ParenType(ParenType), PathType(PathType), PtrType(PtrType), RefType(RefType), SliceType(SliceType), TupleType(TupleType),
}

Variants

ArrayType(ArrayType)

Tuple Fields of ArrayType

0: ArrayType
DynTraitType(DynTraitType)

Tuple Fields of DynTraitType

0: DynTraitType
FnPtrType(FnPtrType)

Tuple Fields of FnPtrType

0: FnPtrType
ForType(ForType)

Tuple Fields of ForType

0: ForType
ImplTraitType(ImplTraitType)

Tuple Fields of ImplTraitType

0: ImplTraitType
InferType(InferType)

Tuple Fields of InferType

0: InferType
MacroType(MacroType)

Tuple Fields of MacroType

0: MacroType
NeverType(NeverType)

Tuple Fields of NeverType

0: NeverType
ParenType(ParenType)

Tuple Fields of ParenType

0: ParenType
PathType(PathType)

Tuple Fields of PathType

0: PathType
PtrType(PtrType)

Tuple Fields of PtrType

0: PtrType
RefType(RefType)

Tuple Fields of RefType

0: RefType
SliceType(SliceType)

Tuple Fields of SliceType

0: SliceType
TupleType(TupleType)

Tuple Fields of TupleType

0: TupleType

Implementations

Returns text, parsed as an type reference, but only if it has no errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.