pub struct TypedViewPatch {
pub attr_changes: Vec<ViewAttrChange>,
pub text_changes: Vec<ViewTextChange>,
}Expand description
Every typed change of one Tier-1 view! save, in source order.
Fields§
§attr_changes: Vec<ViewAttrChange>§text_changes: Vec<ViewTextChange>Implementations§
Source§impl TypedViewPatch
impl TypedViewPatch
pub fn is_empty(&self) -> bool
Sourcepub fn log_lines(&self) -> Vec<String>
pub fn log_lines(&self) -> Vec<String>
Formats concise human-readable change descriptions for [tier-1] watch logs.
Sourcepub fn to_template_patches(
&self,
generation: u64,
) -> Result<Vec<HotPatchMsg>, String>
pub fn to_template_patches( &self, generation: u64, ) -> Result<Vec<HotPatchMsg>, String>
Lowers all changes to AnchorKey-addressed binary HotPatchMsg::TemplatePatch messages
(template_key = anchor.0, node_path = vec![]), merging style + text edits targeting the
same AnchorKey into one atomic message in first-appearance order.
Trait Implementations§
Source§impl Clone for TypedViewPatch
impl Clone for TypedViewPatch
Source§impl Debug for TypedViewPatch
impl Debug for TypedViewPatch
Source§impl Default for TypedViewPatch
impl Default for TypedViewPatch
Source§impl PartialEq for TypedViewPatch
impl PartialEq for TypedViewPatch
impl StructuralPartialEq for TypedViewPatch
Auto Trait Implementations§
impl Forget for TypedViewPatch
impl Freeze for TypedViewPatchwhere
*const u8 is !null: Freeze,
PhantomData<ViewAttrChange>: Freeze,
PhantomData<ViewTextChange>: Freeze,
impl Move for TypedViewPatch
impl RefUnwindSafe for TypedViewPatch
impl Send for TypedViewPatch
impl Sync for TypedViewPatchwhere
RawVecInner: Sync,
impl Unpin for TypedViewPatch
impl UnsafeUnpin for TypedViewPatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ViewAttrChange>: UnsafeUnpin,
PhantomData<ViewTextChange>: UnsafeUnpin,
impl UnwindSafe for TypedViewPatchwhere
RawVecInner: UnwindSafe,
&'static AttrSpec: 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