Skip to content

Documentation (The Book): FFI section introduces destructors without explanation #22002

Description

@RalfJung

The "Destructors" section of the FFI chapter http://doc.rust-lang.org/book/ffi.html#destructors is, as far as I can tell, the first time in the book that destructors in Rust are mentioned. The short paragraph is not helpful in explaining what they are, and how they are used. When I read this section, I didn't even know Rust had destructors. Either a reference to some further explanation should be provided, or a short example given inline (mentioning at the very least the Drop trait).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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