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§
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§
Implementations§
Source§impl dyn RequireNode
impl dyn RequireNode
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".