pub trait ElementDefaults {
// Required methods
fn _get_attributes(&self) -> String;
fn _get_children(&self) -> String;
// Provided methods
fn get_attributes(&self) -> String { ... }
fn get_children(&self) -> String { ... }
}Expand description
Provides default access to the rendered attribute and child markup of an element, used by generated renderable implementations.
Required Methods§
Sourcefn _get_attributes(&self) -> String
fn _get_attributes(&self) -> String
Returns the serialized attribute string for this element.
Sourcefn _get_children(&self) -> String
fn _get_children(&self) -> String
Returns the serialized inner HTML of this element’s children.
Provided Methods§
Sourcefn get_attributes(&self) -> String
fn get_attributes(&self) -> String
Returns the element’s attributes as an HTML attribute string.
Sourcefn get_children(&self) -> String
fn get_children(&self) -> String
Returns the element’s children rendered as an HTML string.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".