Move ordered operation

This commit is contained in:
Andras Schmelczer 2025-04-05 10:51:51 +01:00
commit edca6f1717
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 1 additions and 1 deletions

View file

@ -2,6 +2,7 @@ mod cursor;
mod edited_text;
mod merge_context;
mod operation;
mod ordered_operation;
pub use cursor::{CursorPosition, TextWithCursors};
pub use edited_text::EditedText;

View file

@ -0,0 +1,14 @@
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
use crate::operation_transformation::Operation;
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub struct OrderedOperation<T>
where
T: PartialEq + Clone + std::fmt::Debug,
{
pub order: usize,
pub operation: Operation<T>,
}

View file

@ -2,6 +2,5 @@ pub mod common_prefix_len;
pub mod common_suffix_len;
pub mod find_longest_prefix_contained_within;
pub mod merge_iters;
pub mod ordered_operation;
pub mod side;
pub mod string_builder;