gremlin_client/process/traversal/step/
repeat.rs1use crate::process::traversal::TraversalBuilder;
2use crate::structure::GValue;
3
4pub struct RepeatStep {
5 params: Vec<GValue>,
6}
7
8impl RepeatStep {
9 fn new(params: Vec<GValue>) -> Self {
10 RepeatStep { params }
11 }
12}
13
14impl From<RepeatStep> for Vec<GValue> {
15 fn from(step: RepeatStep) -> Self {
16 step.params
17 }
18}
19
20impl From<TraversalBuilder> for RepeatStep {
21 fn from(param: TraversalBuilder) -> RepeatStep {
22 RepeatStep::new(vec![param.bytecode.into()])
23 }
24}