Struct PatchSet
pub struct PatchSet { /* private fields */ }Expand description
A set of document patch operations.
Implementations§
§impl PatchSet
impl PatchSet
pub fn new(operations: Vec<PatchOperation>) -> PatchSet
pub fn new(operations: Vec<PatchOperation>) -> PatchSet
Creates a patch set from operations.
pub fn operations(&self) -> &[PatchOperation]
pub fn operations(&self) -> &[PatchOperation]
Returns the patch operations.
pub fn with_operation(self, operation: PatchOperation) -> PatchSet
pub fn with_operation(self, operation: PatchOperation) -> PatchSet
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