Skip to content

Exposing getters of nested structs from the top level struct #130

@fa993

Description

@fa993

Consider 2 structs as so

struct A {
a: T1,
b: B,
}

struct B {
c: T3,
d: T4
}

Could we add an attribute that could maybe expose the getters of B as if they were getters of A?

So instead of invoking a.b().c(), one could invoke a.c() directly.

I am happy to contribute code for this, as well as discuss possible design issues as well.

Thank you.

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