Skip to content

impl ZeroableInOption for all Zeroable? #246

Open
@Rua

Description

@Rua

Currently, Option<NonZeroI32> implements Zeroable, but Option<i32> does not. Would it be sound to implement ZeroableInOption for all Zeroable types? Since zero maps to None in a regular option, this would always produce a valid value wouldn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions