Skip to content

Unsafe Traits #69

Open
Open
@Serentty

Description

@Serentty

I see that you're warning users not to manually implement QObject, but to use the derive macro instead. In that case, why not make the trait unsafe? This makes it unsafe to implement it, but not unsafe to actually use it. It seems like it would be handy for preventing accidental implementations.

Metadata

Metadata

Assignees

Labels

A-macrosArea: Macro code generationA-rustArea: Rust glueC-enhancementCategory: An issue proposing an enhancement or a PR with one.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessP-lowLow priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions