[][src]Trait swc_common::util::map::Map

pub trait Map<T> {
    fn map<F>(self, f: F) -> Self
    where
        F: FnOnce(T) -> T
; }

Copied from syntax::ptr::P

Required methods

fn map<F>(self, f: F) -> Self where
    F: FnOnce(T) -> T, 

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

Loading content...

Implementations on Foreign Types

impl<T> Map<T> for Box<T>[src]

Loading content...

Implementors

Loading content...