gremlin-client 0.8.10

A Rust client for Apache TinkerPop™
Documentation
use crate::process::traversal::TraversalBuilder;
use crate::structure::GValue;

pub struct NotStep {
    params: Vec<GValue>,
}

impl NotStep {
    fn new(params: Vec<GValue>) -> Self {
        NotStep { params }
    }
}

impl From<NotStep> for Vec<GValue> {
    fn from(step: NotStep) -> Self {
        step.params
    }
}

impl From<TraversalBuilder> for NotStep {
    fn from(param: TraversalBuilder) -> Self {
        NotStep::new(vec![param.bytecode.into()])
    }
}