Skip to content

Add expect_variant methods to #[derive(Unwrap)] #522

@MaxMahem

Description

@MaxMahem

Pretty straightforward, to go along with the normal unwrapping methods, it would be nice if there were expect counterparts that allowed the panic message to be customized and provide inline documentation as to why a potentially panicking method is being called.

Open to implementing this myself if the pull would be accepted.

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