Skip to main content

Module surface

Module surface 

Source

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::ops::Range; ๐Ÿ”’
use flux_config::PartialInferOpts; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexSet; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::symbol::sym; ๐Ÿ”’
use crate::surface::visit::Visitor; ๐Ÿ”’

Modulesยง

visit
A visitor for types in surface

Structsยง

Axiom
A (global) axiom, i.e., a fact (typically about uninterpreted functions) that is assumed to hold for all values of its parameters; see tests/tests/pos/surface/axiom00.rs
BareFnTy
BaseTy
ConstArg
ConstantInfo
DetachedInherentImpl
DetachedItem
DetachedSpecs
DetachedTrait
DetachedTraitImpl
EnumDef
Expr
ExprPath
A Path but for refinement expressions
ExprPathSegment
FieldExpr
FnOutput
FnSig
GenericArg
GenericParam
Generics
Impl
ImplAssocReft
ImplItemFn
Indices
Item
LetDecl
NodeId
A NodeId is a unique identifier we assign to some AST nodes to be able to attach information to them. For example, to assign a resolution to a Path. The NodeId is unique within a crate.
Path
PathSegment
PrimOpProp
A primop property; see tests/tests/pos/surface/
Punctuated
A punctuated sequence of values of type T separated by punctuation of type P
Qualifier
RefineParam
Requires
SortDecl
SortPath
A Path but for sorts.
SpecFunc
A global function definition. It can be either an uninterpreted function or a syntactic abstraction, i.e., a function with a body.
Spread
StaticInfo
StructDef
Trait
TraitAssocReft
TraitItemFn
TraitRef
Ty
TyAlias
UseTree
VariantDef
VariantRet
WhereBoundPredicate
Ident
Lit
A literal token.
Span
A compressed span.

Enumsยง

Async
Attr
An attribute attaches metadata to an item.
BaseSort
BaseTyKind
BinOp
BindKind
ConstArgKind
ConstructorArg
DetachedItemKind
Ensures
ExprKind
FluxItem
FnInput
FnRetTy
GenericArgKind
HintKind
Determines which functions a hint to the solver (a qualifier or an axiom) is used for
Ignored
A boolean-like enum used to mark whether a piece of code is ignored.
ItemKind
ParamMode
QuantKind
RefineArg
Safety
Sort
Trusted
A boolean-like enum used to mark whether some code should be trusted.
TyKind
UnOp
UseTreeKind
LitKind
Mutability

Type Aliasesยง

GenericBounds
RefineParams