FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Node

    struct · ferroui-designer-core · v0.5.0

    struct Node
    

    View source

    Members

    id

    id: NodeId
    

    Source

    kind

    kind: NodeKind
    

    Source

    name

    name: String
    

    Lexical qualified name for elements, empty for text and trivia.

    Source

    namespace_uri

    namespace_uri: Option<String>
    

    Source

    parent

    parent: Option<NodeId>
    

    Source

    children

    children: Vec<NodeId>
    

    All syntax children in source order, including whitespace and comments.

    Source

    attributes

    attributes: Vec<Attribute>
    

    Source

    span

    span: SourceSpan
    

    Source

    name_span

    name_span: SourceSpan
    

    Source

    opening_span

    opening_span: SourceSpan
    

    Source

    closing_span

    closing_span: Option<SourceSpan>
    

    Source

    self_closing

    self_closing: bool
    

    Source

    text

    text: Option<String>
    

    Decoded text or unwrapped comment, CDATA or processing-instruction text.

    Source

    is_element

    fn is_element(self: &Self) -> bool
    

    Source

    attribute

    fn attribute(self: &Self, name: &str) -> Option<&str>
    

    Source

    attribute_info

    fn attribute_info(self: &Self, name: &str) -> Option<&Attribute>
    

    Source

    local_name

    fn local_name(self: &Self) -> &str
    

    Source

    xaml_name

    fn xaml_name(self: &Self) -> Option<&str>
    

    XAML name in its resolved namespace, with unprefixed Name as fallback.

    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.