solomon_gremlin/process/traversal/step/
until.rs

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