Skip to content

Guide does not explain the namespaced enums #19556

Closed
@lifthrasiir

Description

@lifthrasiir

We have lots of the legacy of non-namespaced enums throughout the guide:

  • Section 8.4 and 9 should use Ordering::{Less, Equal, Greater} instead of {Less, Equal, Greater} (cf. The enum type in Guide is not working #17967, Update guide to reflect changes to enums. #19551).
  • Section 8.4 contains StringResult::{StringOK, ErrorReason}, which probably should be renamed.
  • Section 22 contains OptionalFloat64::{Valuef64, Missingf64}, which probably should be renamed.
  • Section 22 introduces a generic Option<T>, but doesn't mention that its variants are reexported by default. (In fact, the guide doesn't mention that variants can be reexported at all.)

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