Skip to content

Top-level reference types #12

Description

@harpocrates

References at the top level should be possible. For example:

main = do
  let s: S = {- some complex deeply nested struct (but not enum!) -}
  [rustIO| () { println!("{:#?}", (&s: &S)) } |]

Under the hood, this should turn into a Ptr S which gets unsafely turned into a reference on the Rust side.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions