pub trait Map<T> {
    fn map<F>(self, f: F) -> Self
    where
        F: FnOnce(T) -> T
; }
Available on crate feature __common only.
Expand description

Copied from syntax::ptr::P of rustc.

Required Methods

Transform the inner value, consuming self and producing a new P<T>.

Memory leak

This will leak self if the given closure panics.

Implementations on Foreign Types

Implementors