Skip to content

Conversation

@Tunglies
Copy link

@Tunglies Tunglies commented Dec 7, 2025

Clippy passed, cagro test all features and all targets passed with rust 1.74.

Some usage

let marked_text: &NSMutableAttributedString = *this.get_ivar("markedText");
/// Use [`Ivar::load`] instead.
    ///
    ///
    /// # Safety
    ///
    /// The object must have an instance variable with the given name, and it
    /// must be of type `T`.
    ///
    /// See [`Ivar::load_ptr`] for details surrounding this.
    #[deprecated = "this is difficult to use correctly, use `Ivar::load` instead."]
    pub unsafe fn get_ivar<T: Encode>(&self, name: &str) -> &T {
        let ivar = self.lookup_instance_variable_dynamically(name);
        // SAFETY: Upheld by caller
        unsafe { ivar.load::<T>(self) }
    }

Might introducing in the future?

@Tunglies Tunglies requested a review from a team as a code owner December 7, 2025 03:38
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2025

Package Changes Through ad91df6

There are 1 changes which include tao with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tao 0.34.5 0.34.6

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

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.

1 participant