swc_macros_common::prelude

Trait PairExt

source
pub trait PairExt<T, P>: Sized + Into<Pair<T, P>> {
    // Provided method
    fn map_item<F, NewItem>(self, op: F) -> Pair<NewItem, P>
       where F: FnOnce(T) -> NewItem { ... }
}

Provided Methods§

source

fn map_item<F, NewItem>(self, op: F) -> Pair<NewItem, P>
where F: FnOnce(T) -> NewItem,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, P> PairExt<T, P> for Pair<T, P>