pub struct Transform {
pub doc: Arc<NodePool>,
pub draft: Draft,
pub steps: Vector<Arc<dyn Step>>,
pub patches: Vector<Vec<Patch>>,
pub schema: Arc<Schema>,
}Fields§
§doc: Arc<NodePool>当前文档状态
draft: Draft文档的草稿状态,用于临时修改
steps: Vector<Arc<dyn Step>>存储所有操作步骤
patches: Vector<Vec<Patch>>存储每个步骤对应的补丁列表
schema: Arc<Schema>文档的模式定义
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transform
impl !RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl !UnwindSafe for Transform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more