Struct rustc_ast::ptr::P [−][src]
Expand description
An owned smart pointer.
Fields
ptr: Box<T>Implementations
Move out of the pointer.
Intended for chaining transformations not covered by map.
Equivalent to and_then(|x| x).
Produce a new P<T> from self without reallocating.
Trait Implementations
This is true if this AstLike might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg] and #![cfg_attr] are not
considered ‘custom’ attributes Read more
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for P<T> where
T: RefUnwindSafe,
impl<T: ?Sized> UnwindSafe for P<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.