Struct rustc_ap_rustc_ast::ptr::P [−][src]
pub struct P<T: ?Sized> { /* fields omitted */ }
Expand description
An owned smart pointer.
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V