Skip to content

chore: Update Readme#6

Open
samuelburnham wants to merge 1 commit intomainfrom
update-readme
Open

chore: Update Readme#6
samuelburnham wants to merge 1 commit intomainfrom
update-readme

Conversation

@samuelburnham
Copy link
Member

No description provided.

- **`LeanBorrowed<'a>`** — A borrowed reference. `Copy`, no `Drop`, lifetime-bounded.
Corresponds to `b_lean_obj_arg` in the C FFI. Used when Lean declares a parameter
with `@&`.
- **`LeanOwned`** — An owned reference to a Lean object. Corresponds to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An owned reference to a Lean object or a reference to an owned Lean object? 🤔

for persistent objects (`m_rc == 0`).
- Not `Copy` — ownership is linear. Each handle must be explicitly cloned or dropped.

- **`LeanBorrowed<'a>`** — A borrowed reference. Corresponds to `b_lean_obj_arg` in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reference to a borrowed Lean object? 🤔

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants