solomon_gremlin/structure/pop.rs
1use std::fmt::Display;
2
3#[derive(Debug, PartialEq, Eq, Clone)]
4pub enum Pop {
5 All,
6 First,
7 Last,
8 Mixed,
9}
10
11impl Display for Pop {
12 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> std::fmt::Result {
13 match *self {
14 Pop::All => write!(f, "all"),
15 Pop::First => write!(f, "first"),
16 Pop::Last => write!(f, "last"),
17 Pop::Mixed => write!(f, "mixed"),
18 }
19 }
20}