FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    SetAttribute

    SetAttribute { node: crate::NodeId, name: String, value: String }
    

    Source

    RemoveAttribute

    RemoveAttribute { node: crate::NodeId, name: String }
    

    Source

    InsertChild

    InsertChild { parent: crate::NodeId, index: usize, source: String }
    

    Source

    RemoveNode

    RemoveNode { node: crate::NodeId }
    

    Source

    MoveNode

    MoveNode { node: crate::NodeId, parent: crate::NodeId, index: usize }
    

    Source

    ReplaceSource

    ReplaceSource { source: String }
    

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • DeserializeOwned
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Serialize
    • Deserialize<'de>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.