Skip to content

[Feature Request] Add HasDimension to the public API #675

Open
@wojciech-graj

Description

@wojciech-graj

What is the feature ?

The HasDimension trait is required when implementing IntoTextStyle, as into_text_style is a required function. It is impossible for a user of the crate to implement IntoTextStyle on their type without this change.

fn into_text_style<P: HasDimension>(self, parent: &P) -> TextStyle<'a>;

Use-case

For an example of where this functionality would be useful, see this example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions