Skip to content

Extend #[deriving] to allow options to be specified #7229

Closed
@huonw

Description

@huonw

This would make deriving significantly more flexible, e.g. for #3740:

#[deriving(Encodable(encoder="RustcEncoder"))]
struct Foo { ... }

And for specifying an order of fields to sort by:

#[deriving(Ord(bar, baz))]
struct Foo { baz: uint, bar: uint }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions