Skip to main content

RequireNode

Trait RequireNode 

Source
pub trait RequireNode {
    // Required methods
    fn get_path_component(&self) -> String;
    fn resolve_path_to_node(&self, path: &str) -> Option<Box<dyn RequireNode>>;
    fn get_children(&self) -> Vec<Box<dyn RequireNode>>;
    fn get_available_aliases(&self) -> Vec<RequireAlias>;

    // Provided methods
    fn get_label(&self) -> String { ... }
    fn get_tags(&self) -> Vec<String> { ... }
}

Required Methods§

Provided Methods§

Source

fn get_label(&self) -> String

Source

fn get_tags(&self) -> Vec<String>

Implementations§

Source§

impl dyn RequireNode

Source

pub fn get_label(&self) -> String

Source§

impl dyn RequireNode

Source

pub fn get_tags(&self) -> Vec<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§