BuilderNodeExt

Trait BuilderNodeExt 

Source
pub trait BuilderNodeExt:
    IsA<BuilderNode>
    + Sealed
    + 'static {
Show 25 methods // Provided methods fn add_child(&self, child: &impl IsA<BuilderNode>) { ... } fn add_flag(&self, flag: BuilderNodeFlags) { ... } fn add_token(&self, token: &str) { ... } fn depth(&self) -> u32 { ... } fn export(&self, flags: NodeExportFlags) -> Result<GString, Error> { ... } fn attr(&self, name: &str) -> GString { ... } fn attr_as_uint(&self, name: &str) -> u64 { ... } fn child(&self, element: &str, text: Option<&str>) -> Option<BuilderNode> { ... } fn children(&self) -> Vec<BuilderNode> { ... } fn element(&self) -> Option<GString> { ... } fn first_child(&self) -> BuilderNode { ... } fn last_child(&self) -> BuilderNode { ... } fn parent(&self) -> BuilderNode { ... } fn tail(&self) -> GString { ... } fn text(&self) -> GString { ... } fn text_as_uint(&self) -> u64 { ... } fn tokens(&self) -> Vec<GString> { ... } fn has_flag(&self, flag: BuilderNodeFlags) -> bool { ... } fn remove_attr(&self, name: &str) { ... } fn remove_child(&self, child: &impl IsA<BuilderNode>) { ... } fn set_attr(&self, name: &str, value: &str) { ... } fn set_element(&self, element: &str) { ... } fn sort_children<P: FnMut(&BuilderNode, &BuilderNode) -> i32>( &self, func: P, ) { ... } fn tokenize_text(&self) { ... } fn unlink(&self) { ... }
}

Provided Methods§

Source

fn add_child(&self, child: &impl IsA<BuilderNode>)

Source

fn add_flag(&self, flag: BuilderNodeFlags)

Source

fn add_token(&self, token: &str)

Source

fn depth(&self) -> u32

Source

fn export(&self, flags: NodeExportFlags) -> Result<GString, Error>

Source

fn attr(&self, name: &str) -> GString

Source

fn attr_as_uint(&self, name: &str) -> u64

Source

fn child(&self, element: &str, text: Option<&str>) -> Option<BuilderNode>

Source

fn children(&self) -> Vec<BuilderNode>

Source

fn element(&self) -> Option<GString>

Source

fn first_child(&self) -> BuilderNode

Source

fn last_child(&self) -> BuilderNode

Source

fn parent(&self) -> BuilderNode

Source

fn tail(&self) -> GString

Source

fn text(&self) -> GString

Source

fn text_as_uint(&self) -> u64

Source

fn tokens(&self) -> Vec<GString>

Source

fn has_flag(&self, flag: BuilderNodeFlags) -> bool

Source

fn remove_attr(&self, name: &str)

Source

fn remove_child(&self, child: &impl IsA<BuilderNode>)

Source

fn set_attr(&self, name: &str, value: &str)

Source

fn set_element(&self, element: &str)

Source

fn sort_children<P: FnMut(&BuilderNode, &BuilderNode) -> i32>(&self, func: P)

Source

fn tokenize_text(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§