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

trait object safety #50

Open
Roms1383 opened this issue Feb 15, 2022 · 0 comments
Open

trait object safety #50

Roms1383 opened this issue Feb 15, 2022 · 0 comments

Comments

@Roms1383
Copy link

Hello! Sorry it's a rookie question, I was browsing documentation and have a small question regarding trait Measurement : as far as I understand, because from_base_unit() returns Self, trait itself is not object safe. That's what the compiler is pointing out when trying to Box<dyn Measurement> so I was wondering if it's by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant