Trait NodeT

Source
pub trait NodeT {
    // Required methods
    fn get_asset_id(&self) -> Option<&str>;
    fn set_asset_id(&mut self, asset_id: impl Into<String>);
    fn get_node_key(&self) -> &str;
    fn set_node_key(&mut self, node_key: impl Into<String>);
    fn merge(&mut self, other: &Self) -> bool;
    fn merge_into(&mut self, other: Self) -> bool;

    // Provided methods
    fn clone_asset_id(&self) -> Option<String> { ... }
    fn clone_node_key(&self) -> String { ... }
}

Required Methods§

Source

fn get_asset_id(&self) -> Option<&str>

Source

fn set_asset_id(&mut self, asset_id: impl Into<String>)

Source

fn get_node_key(&self) -> &str

Source

fn set_node_key(&mut self, node_key: impl Into<String>)

Source

fn merge(&mut self, other: &Self) -> bool

Source

fn merge_into(&mut self, other: Self) -> bool

Provided Methods§

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§