pub trait Map<T> { // Required method fn map<F>(self, f: F) -> Self where F: FnOnce(T) -> T; }
Copied from syntax::ptr::P of rustc.
syntax::ptr::P
Transform the inner value, consuming self and producing a new P<T>.
self
P<T>
This will leak self if the given closure panics.