pub struct PatchSet { /* private fields */ }Expand description
A set of document patch operations.
Implementations§
Source§impl PatchSet
impl PatchSet
Sourcepub fn new(operations: Vec<PatchOperation>) -> Self
pub fn new(operations: Vec<PatchOperation>) -> Self
Creates a patch set from operations.
Sourcepub fn operations(&self) -> &[PatchOperation]
pub fn operations(&self) -> &[PatchOperation]
Returns the patch operations.
Sourcepub fn with_operation(self, operation: PatchOperation) -> Self
pub fn with_operation(self, operation: PatchOperation) -> Self
Adds one operation.
Trait Implementations§
impl Eq for PatchSet
impl StructuralPartialEq for PatchSet
Auto Trait Implementations§
impl Freeze for PatchSet
impl RefUnwindSafe for PatchSet
impl Send for PatchSet
impl Sync for PatchSet
impl Unpin for PatchSet
impl UnsafeUnpin for PatchSet
impl UnwindSafe for PatchSet
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