Skip to content

Top-level reference types #12

@harpocrates

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.

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