diff options
author | Graham Northup <grissess@nexusg.org> | 2017-10-13 12:54:04 -0400 |
---|---|---|
committer | Graham Northup <grissess@nexusg.org> | 2017-10-13 12:54:04 -0400 |
commit | 22cb7d7cbcacbfe3a7d3a2d454e6b8cf49ae989c (patch) | |
tree | 4d2d8cb2ce9c4441ce5cc525375665c44c31f9fb /src/synth/rel.rs | |
parent | 255f0aa6de604e0bf9d37ba0ee5362ef3b9f235f (diff) |
Added LUTs and ControlRate; improved parser
Diffstat (limited to 'src/synth/rel.rs')
-rw-r--r-- | src/synth/rel.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/synth/rel.rs b/src/synth/rel.rs index e3c4216..d2fbb70 100644 --- a/src/synth/rel.rs +++ b/src/synth/rel.rs @@ -11,6 +11,19 @@ pub enum RelOp { Less, } +impl RelOp { + pub fn to_param_string(&self) -> &'static str { + match *self { + RelOp::Greater => ">", + RelOp::GreaterEqual => ">=", + RelOp::Equal => "==", + RelOp::NotEqual => "!=", + RelOp::LessEqual => "<=", + RelOp::Less => "<", + } + } +} + /* TODO impl<T: PartialEq<isize>> From<T> for RelOp { fn from(i: T) -> RelOp { |