proc_macro_rules

Trait Fork

Source
pub trait Fork {
    type Parent;

    // Required methods
    fn fork(&self) -> Self;
    fn new() -> Self;
    fn hoist(&self, outer: &mut Self::Parent);
}

Required Associated Types§

Required Methods§

Source

fn fork(&self) -> Self

Source

fn new() -> Self

Source

fn hoist(&self, outer: &mut Self::Parent)

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§