Expand description
Type probes using Solarβs type-checker results.
Re-exportsΒ§
use solar::sema::Gcx;πuse solar::sema::Ty;πuse solar::sema::hir;πuse solar::sema::hir::ContractId;πuse solar::sema::hir::Expr;πuse solar::sema::hir::TypeKind;πuse solar::sema::hir::VariableId;πuse solar::sema::ty::TyKind;π
FunctionsΒ§
- expr_
is_ address - True when
exprβs type-checked static type isaddress/address payable. - is_
address_ type - True if
vidis typed asaddress/address payable. - is_
elementary - True if
idβs elementary type matches the given ABI string. - receiver_
contract_ id - Static contract type of a method-call receiver or direct contract/library reference.
- ty_
contract_ id - The contract a type denotes, through references and
type(C). - ty_
is_ address address/address payableafter peeling references.- unique
- The only element of
iter, orNonewhen it has zero or several.