mirror of
https://github.com/hexedtech/codemp.git
synced 2025-04-02 01:21:38 +02:00
10 lines
313 B
Rust
10 lines
313 B
Rust
use std::ops::Range;
|
|
|
|
use operational_transform::{OperationSeq, OTError};
|
|
|
|
use crate::operation::factory::OperationFactory;
|
|
|
|
pub trait OperationProcessor : OperationFactory {
|
|
fn apply(&self, op: OperationSeq) -> Result<Range<u64>, OTError>;
|
|
fn process(&self, op: OperationSeq) -> Result<Range<u64>, OTError>;
|
|
}
|