Skip to content

Document Option<extern "C" fn> in the FFI tutorial #8748

@nikomatsakis

Description

@nikomatsakis

The FFI tutorial should reflect the fact that:

  1. Option<thin-ptr-type> is guaranteed to be a pointer with None represented as NULL.
  2. Option<extern "C" fn> is the recommended way to represent a nullable fn pointer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions