Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wojciech-graj opened this issue Feb 23, 2025 · 0 comments
Open

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

wojciech-graj opened this issue Feb 23, 2025 · 0 comments

Comments

@wojciech-graj
Copy link

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.

@wojciech-graj wojciech-graj changed the title [Feature Request] Add HasDimension to the public API [Feature Request] Add HasDimension to the public API Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant