Trait IntoAttributes

Source
pub trait IntoAttributes {
    // Required method
    fn to_attributes(&self) -> impl IntoIterator<Item = (String, String)>;
}
Expand description

Helper trait to transform an struct into an Iterator of Key-Value pairs for the attributes of a [Node].

Required Methods§

Source

fn to_attributes(&self) -> impl IntoIterator<Item = (String, String)>

Gets an iterator of an (String, String) tuple.

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§