Module syntax_ext::deriving::generic::ty [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A mini version of ast::Ty, which is easier to use, and features an explicit Self
type to use
when specifying impls to be derived.
Re-exports
pub use self::PtrTy::*; |
pub use self::Ty::*; |
use syntax::ast; |
use syntax::ast::Expr; |
use syntax::ast::GenericParam; |
use syntax::ast::Generics; |
use syntax::ast::Ident; |
use syntax::ast::SelfKind; |
use syntax::ext::base::ExtCtxt; |
use syntax::ext::build::AstBuilder; |
use syntax::codemap::respan; |
use syntax::codemap::DUMMY_SP; |
use syntax::ptr::P; |
use syntax::ptr::P; |
use syntax_pos::Span; |
use syntax_pos::symbol::keywords; |
Structs
LifetimeBounds |
[ Experimental ] Lifetimes and bounds on type parameters |
Path |
[ Experimental ] A path, e.g. |
Enums
PathKind |
[ Experimental ]
|
PtrTy |
[ Experimental ] The types of pointers |
Ty |
[ Experimental ] A type. Supports pointers, Self, and literals |
Functions
borrowed |
[ Experimental ]
|
borrowed_explicit_self |
[ Experimental ]
|
borrowed_ptrty |
[ Experimental ]
|
borrowed_self |
[ Experimental ]
|
get_explicit_self |
[ Experimental ]
|
mk_generics |
[ Experimental ]
|
mk_lifetime |
[ Experimental ]
|
mk_lifetimes |
[ Experimental ]
|
mk_ty_param |
[ Experimental ]
|
nil_ty |
[ Experimental ]
|