pub trait StyleNodeClass {
// Required methods
fn name(&self) -> &str;
fn scope(&self) -> Option<NonZeroUsize>;
}Expand description
The class for a StyleNode.
Required Methods§
Sourcefn scope(&self) -> Option<NonZeroUsize>
fn scope(&self) -> Option<NonZeroUsize>
The style scope of the class.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".