Move ordered operation
This commit is contained in:
parent
8e1123016b
commit
edca6f1717
3 changed files with 1 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ mod cursor;
|
||||||
mod edited_text;
|
mod edited_text;
|
||||||
mod merge_context;
|
mod merge_context;
|
||||||
mod operation;
|
mod operation;
|
||||||
|
mod ordered_operation;
|
||||||
|
|
||||||
pub use cursor::{CursorPosition, TextWithCursors};
|
pub use cursor::{CursorPosition, TextWithCursors};
|
||||||
pub use edited_text::EditedText;
|
pub use edited_text::EditedText;
|
||||||
|
|
|
||||||
|
|
@ -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>,
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,5 @@ pub mod common_prefix_len;
|
||||||
pub mod common_suffix_len;
|
pub mod common_suffix_len;
|
||||||
pub mod find_longest_prefix_contained_within;
|
pub mod find_longest_prefix_contained_within;
|
||||||
pub mod merge_iters;
|
pub mod merge_iters;
|
||||||
pub mod ordered_operation;
|
|
||||||
pub mod side;
|
pub mod side;
|
||||||
pub mod string_builder;
|
pub mod string_builder;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue