You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
231 B
Rust

use std::fmt::Debug;
use super::{Context, OperationId};
use super::{Node, Result};
pub(crate) trait Operation: Debug + Send + Sync {
fn id(&self) -> &OperationId;
fn serialize(&self, cx: &mut Context) -> Result<Node>;
}