TakeIn

Trait TakeIn 

Source
pub trait TakeIn<'a>: Dummy<'a> {
    // Provided methods
    fn take_in<A: AllocatorAccessor<'a>>(
        &mut self,
        allocator_accessor: A,
    ) -> Self { ... }
    fn take_in_box<A: AllocatorAccessor<'a>>(
        &mut self,
        allocator_accessor: A,
    ) -> Box<'a, Self> { ... }
}
Expand description

A trait to replace an existing AST node with a dummy.

Provided Methods§

Source

fn take_in<A: AllocatorAccessor<'a>>(&mut self, allocator_accessor: A) -> Self

Replace node with a dummy.

Source

fn take_in_box<A: AllocatorAccessor<'a>>( &mut self, allocator_accessor: A, ) -> Box<'a, Self>

Replace node with a boxed dummy.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T> TakeIn<'a> for Vec<'a, T>