Skip to main content

StyleExt

Trait StyleExt 

Source
pub trait StyleExt
where 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§

Source

fn style_mut(&mut self) -> &mut StyleState

Returns a mutable reference to the element’s style data.

Provided Methods§

Source

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".

Implementors§