Edit
enum · ferroui-designer-core · v0.5.0
enum Edit
Commands are evaluated against a private candidate, then committed once. Consecutive attribute edits are validated together, allowing a property and its namespace declaration in either order. Other commands observe preceding commands. Element-child indices exclude text, whitespace and comments. Move indices refer to the destination list after removing the moving node.
Members
SetAttribute
SetAttribute { node: crate::NodeId, name: String, value: String }
RemoveAttribute
RemoveAttribute { node: crate::NodeId, name: String }
InsertChild
InsertChild { parent: crate::NodeId, index: usize, source: String }
RemoveNode
RemoveNode { node: crate::NodeId }
MoveNode
MoveNode { node: crate::NodeId, parent: crate::NodeId, index: usize }
ReplaceSource
ReplaceSource { source: String }
Text
Text { span: crate::SourceSpan, replacement: String }
A UTF-8 byte-range edit in the current candidate source. For simultaneous
source-coordinate patches use Document::apply_text_patches.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedDeserializeOwnedCloneDebugStructuralPartialEqPartialEqEqSerializeDeserialize<'de>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.