Trait swc_common::util::take::Take[][src]

pub trait Take: Sized {
    fn dummy() -> Self;

    fn take(&mut self) -> Self { ... }
fn map_with_mut<F>(&mut self, op: F)
        F: FnOnce(Self) -> Self
, { ... } }
Expand description

Helper for people who are working on VisitMut.

This trait is implemented for ast nodes. If not and you need it, please file an issue.

Required methods

Create a dummy value of this type.

Provided methods

Mutate self using op, which accepts owned data.

Implementations on Foreign Types