diff --git a/src/rewrite/exploitation.rs b/src/rewrite/exploitation.rs index 0283873..8bc2cd8 100644 --- a/src/rewrite/exploitation.rs +++ b/src/rewrite/exploitation.rs @@ -280,6 +280,13 @@ pub struct OneOf { branches: Vec, } +impl OneOf { + /// Create a new OneOf node with the given branches. + pub fn new(branches: Vec) -> Self { + Self { branches } + } +} + impl UserDefinedLogicalNodeCore for OneOf { fn name(&self) -> &str { "OneOf"