pub struct PreparedPatch<'a> { /* private fields */ }Expand description
One validated field update. Its descriptor is a borrowed view of the staged value; the inverse contains only the replaced field. Drop rolls it back, including on unwinding. No stats/watermark advance until commit.
Implementations§
Source§impl PreparedPatch<'_>
impl PreparedPatch<'_>
pub fn descriptor(&self) -> DescriptorView<'_>
Trait Implementations§
Source§impl Drop for PreparedPatch<'_>
impl Drop for PreparedPatch<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PreparedPatch<'a>
impl<'a> !Send for PreparedPatch<'a>
impl<'a> !Sync for PreparedPatch<'a>
impl<'a> !UnwindSafe for PreparedPatch<'a>
impl<'a> Forget for PreparedPatch<'a>
impl<'a> Freeze for PreparedPatch<'a>where
&'a mut Memory: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<RichDocument> is !null: Freeze,
PhantomData<RcInner<RichDocument>>: Freeze,
PhantomData<SemanticId>: Freeze,
*const GraphicProps is !null: Freeze,
PhantomData<GraphicProps>: Freeze,
*const FileConfig is !null: Freeze,
PhantomData<FileConfig>: Freeze,
PhantomData<String>: Freeze,
*const Style is !null: Freeze,
PhantomData<Style>: Freeze,
*const Semantics is !null: Freeze,
PhantomData<Semantics>: Freeze,
impl<'a> Move for PreparedPatch<'a>
impl<'a> Unpin for PreparedPatch<'a>
impl<'a> UnsafeUnpin for PreparedPatch<'a>where
&'a mut Memory: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<RichDocument> is !null: UnsafeUnpin,
PhantomData<RcInner<RichDocument>>: UnsafeUnpin,
PhantomData<SemanticId>: UnsafeUnpin,
*const GraphicProps is !null: UnsafeUnpin,
PhantomData<GraphicProps>: UnsafeUnpin,
*const FileConfig is !null: UnsafeUnpin,
PhantomData<FileConfig>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Style is !null: UnsafeUnpin,
PhantomData<Style>: UnsafeUnpin,
*const Semantics is !null: UnsafeUnpin,
PhantomData<Semantics>: UnsafeUnpin,
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