geo_aid_script::unroll

Trait CloneWithNode

source
pub trait CloneWithNode {
    // Required methods
    fn clone_with_node(&mut self) -> Self;
    fn clone_without_node(&self) -> Self;
}
Expand description

Used for distinction between cloning an expression AND taking its node and cloning an expression WITHOUT taking its node.

Required Methods§

source

fn clone_with_node(&mut self) -> Self

Clone self and take its node.

source

fn clone_without_node(&self) -> Self

Clone self without taking its node.

Object Safety§

This trait is not object safe.

Implementors§