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§
sourcefn clone_with_node(&mut self) -> Self
fn clone_with_node(&mut self) -> Self
Clone self and take its node.
sourcefn clone_without_node(&self) -> Self
fn clone_without_node(&self) -> Self
Clone self without taking its node.
Object Safety§
This trait is not object safe.