Skip to main content

StyleNodeClass

Trait StyleNodeClass 

Source
pub trait StyleNodeClass {
    // Required methods
    fn name(&self) -> &str;
    fn scope(&self) -> Option<NonZeroUsize>;
}
Expand description

The class for a StyleNode.

Required Methods§

Source

fn name(&self) -> &str

The name of the class.

Source

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

Implementations on Foreign Types§

Source§

impl StyleNodeClass for (String, Option<NonZeroUsize>)

Source§

fn name(&self) -> &str

Source§

fn scope(&self) -> Option<NonZeroUsize>

Implementors§