Skip to content

Conversation

abrown
Copy link
Contributor

@abrown abrown commented May 13, 2024

See the commit messages for what this entails; this is a refactoring and should not involve any logic changes.

abrown added 3 commits May 13, 2024 15:25
This change is another refactor to align more closely with Rust
conventinos on the naming of the pointers that the `openvino` crate must
pass around. Since Rust tends to use `ptr` to refer to this kind of
thing (e.g., `slice::as_ptr`), this change removes the overloaded
`instance` term by:
- replacing `instance` with `ptr` as the field name for the Rust wrapper
  structs; in the cases where we do not hold a pointer, let's use
  `c_struct` instead (which should help differentiate what's going on)
- replacing `new_from_instance()` and `instance()` with `from_ptr()` and
  `as_ptr()`; it would be nice to use `From` and `Into` implementations
  here but we don't want to expose the `ov_*` pointer types in the public
  API of the `openvino` crate
@abrown abrown requested a review from rahulchaphalkar May 13, 2024 22:32
Copy link
Contributor

@rahulchaphalkar rahulchaphalkar left a comment

Choose a reason for hiding this comment

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

Looks good!

@abrown abrown merged commit 5e3ce9d into intel:main May 14, 2024
@abrown abrown deleted the rename branch May 14, 2024 16:37
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