pub trait StyleExtwhere
Self: Sized,{
// Required method
fn style_mut(&mut self) -> &mut StyleState;
// Provided method
fn style(self, style: StyleState) -> Self { ... }
}Expand description
Low-level access to an element’s StyleState.
Required Methods§
Sourcefn style_mut(&mut self) -> &mut StyleState
fn style_mut(&mut self) -> &mut StyleState
Returns a mutable reference to the element’s style data.
Provided Methods§
Sourcefn style(self, style: StyleState) -> Self
fn style(self, style: StyleState) -> Self
Replace all of the element’s style data at once. See StyleState.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".