Node
struct · ferroui-designer-core · v0.5.0
struct Node
Members
idkindnamenamespace_uriparentchildrenattributesspanname_spanopening_spanclosing_spanself_closingtextis_elementattributeattribute_infolocal_namexaml_name
id
id: NodeId
kind
kind: NodeKind
name
name: String
Lexical qualified name for elements, empty for text and trivia.
namespace_uri
namespace_uri: Option<String>
parent
parent: Option<NodeId>
children
children: Vec<NodeId>
All syntax children in source order, including whitespace and comments.
attributes
attributes: Vec<Attribute>
span
span: SourceSpan
name_span
name_span: SourceSpan
opening_span
opening_span: SourceSpan
closing_span
closing_span: Option<SourceSpan>
self_closing
self_closing: bool
text
text: Option<String>
Decoded text or unwrapped comment, CDATA or processing-instruction text.
is_element
fn is_element(self: &Self) -> bool
attribute
fn attribute(self: &Self, name: &str) -> Option<&str>
attribute_info
fn attribute_info(self: &Self, name: &str) -> Option<&Attribute>
local_name
fn local_name(self: &Self) -> &str
xaml_name
fn xaml_name(self: &Self) -> Option<&str>
XAML name in its resolved namespace, with unprefixed Name as fallback.
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.