pub trait WithAttributes: Clone {
    fn get_attributes(&self) -> &Attributes;
    fn mut_attributes(&mut self) -> &mut Attributes;

    fn with_attributes<F: Fn(&mut Attributes)>(&self, edit: F) -> Self { ... }
}
Expand description

This trait should not be exposed outside the crate.

Required Methods§

Return attributes of component.

Return attributes of component for mutation.

Provided Methods§

Clone the component and mutate its attributes at once.

Implementors§