sigalign_core/aligner/local/
switch_modes.rs

1use super::{LocalAligner, LocalWithLimitAligner};
2
3impl LocalAligner {
4    pub fn to_limited(self, limit: u32) -> LocalWithLimitAligner {
5        LocalWithLimitAligner {
6            regulator: self.regulator,
7            workspace: self.workspace,
8            limit,
9        }
10    }
11}
12
13impl LocalWithLimitAligner {
14    pub fn to_unlimited(self) -> LocalAligner {
15        LocalAligner {
16            regulator: self.regulator,
17            workspace: self.workspace,
18        }
19    }
20}