Skip to content

moxie::Key is and isn't a smart pointer #197

Description

@anp

Two API guidelines are in conflict for Key:

  • Smart pointers do not add inherent methods (C-SMART-PTR)
  • Only smart pointers implement Deref and DerefMut (C-DEREF)

Key implements Deref (but not DerefMut), and it adds inherent methods. Its deref impl is useful for sharing the "current state" with app logic as it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelated to the core `moxie` crate

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions