Skip to main content

StyleBaseImpl

Trait StyleBaseImpl 

Source
pub trait StyleBaseImpl: FerroObjectImpl + Upcast<StyleBase> {
    // Provided methods
    fn set_parent(this: &Self, parent: Option<&Ref<StyleBase>>) { ... }
    fn to_display_string(this: &Self) -> String { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn set_parent(this: &Self, parent: Option<&Ref<StyleBase>>)

Sets the parent style. Called when the style is added to or removed from the children of another style; validates that the style can be nested in parent.

Source

fn to_display_string(this: &Self) -> String

A string describing the style: its selector, target type or query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§