icentral_operation/types.rs
1crate::ix!();
2
3//-------------------------------------------[icentral/src/types.h]
4
5pub const EPS: f32 = 0.0001;
6
7#[derive(Copy,Clone,Default,Debug,PartialEq,Eq)]
8pub enum Operation {
9 #[default] Insertion,
10 Deletion
11}
12
13impl Operation {
14
15 pub fn is_deletion(&self) -> bool {
16 *self == Operation::Deletion
17 }
18
19 pub fn is_insertion(&self) -> bool {
20 *self == Operation::Insertion
21 }
22}