Skip to content

trait object safety #50

@Roms1383

Description

@Roms1383

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions