pub enum Op {
Change(Node),
Insert(Insert),
Remove(NodeId),
Move(Move),
}Variants§
Change(Node)
The node with this node’s id takes its own attributes; its children stay, and this node carries none.
Insert(Insert)
Remove(NodeId)
The node with this id goes, with its subtree.
Move(Move)
Implementations§
Source§impl Op
impl Op
Sourcepub fn merge(
field: &mut Option<Op>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Op>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Opwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<Stop>: Freeze,
PhantomData<u32>: Freeze,
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Opwhere
RawVecInner: Send,
impl Sync for Opwhere
RawVecInner: Sync,
impl Unpin for Op
impl UnsafeUnpin for Opwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<Stop>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
impl UnwindSafe for Opwhere
RawVecInner: UnwindSafe,
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