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§
Sourcefn take_in<A: AllocatorAccessor<'a>>(&mut self, allocator_accessor: A) -> Self
fn take_in<A: AllocatorAccessor<'a>>(&mut self, allocator_accessor: A) -> Self
Replace node with a dummy.
Sourcefn take_in_box<A: AllocatorAccessor<'a>>(
&mut self,
allocator_accessor: A,
) -> Box<'a, Self>
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.