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§
Sourcefn to_attributes(&self) -> impl IntoIterator<Item = (String, String)>
fn to_attributes(&self) -> impl IntoIterator<Item = (String, String)>
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.