Skip to content

making ast module public? #1

@ratmice

Description

@ratmice

One thing I noticed is that ron_reboot::utf8_parser::ast_from_str is public, but the Ron<'_> value return type is from the private module ron_reboot::ast. I don't have a great understanding of rust visibility, but it appears the behavior is such that you can access public fields of the Ron<'_> value, but can't pattern match over them.

It would be nice for accessing spans, if you could pattern match over the ron.expr therein.
Is there a reason the module isn't public?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions