Module marker_api::ast

source ·

Modules

Structs

  • AstPaths are used to identify items. A qualified path (QPath) can be used in expressions and types to identify associated items on types. For traits it’s additionally possible to specify the type that should be used as Self. This is sometimes needed to disambiguate an item, if it exists both as an associated item on a type, and as an associated item on traits, that this type implements.
  • This ID uniquely identifies a body during linting.
  • The semantic equivalent of a ConstExpr, at least theoretically. This part of the API is sadly not done yet, so this is just a placeholder.
  • This ID uniquely identifies a crate during linting.
  • Information about a specific expansion.
  • This ID uniquely identifies an expression during linting.
  • This ID uniquely identifies a field inside a struct during linting.
  • A location inside a file.
  • This ID uniquely identifies a generic parameter during linting.
  • This ID uniquely identifies an item during linting.
  • This ID uniquely identifies a macro during linting.
  • A region of code, used for snipping, lint emission, and the retrieval of context information.
  • A byte position used for the start and end position of Spans.
  • This ID uniquely identifies a statement during linting.
  • This ID uniquely identifies a user defined type during linting.
  • This ID uniquely identifies a variable during linting.
  • This ID uniquely identifies an enum variant during linting.

Enums

Traits

  • This trait provides information about callable items and types. Some properties might not be available for every callable object. In these cases the default value will be returned.