Skip to content

Ref with lifetime-limited values and simpler any_compose#35

Open
DasLixou wants to merge 2 commits into
matthunz:mainfrom
DasLixou:lifetime-agnostic-ref-hook
Open

Ref with lifetime-limited values and simpler any_compose#35
DasLixou wants to merge 2 commits into
matthunz:mainfrom
DasLixou:lifetime-agnostic-ref-hook

Conversation

@DasLixou

Copy link
Copy Markdown
Contributor

No description provided.

@DasLixou

Copy link
Copy Markdown
Contributor Author

Warning

The lifetime borrow of StateScope could lead to illegally shortened lifetimes - need to check that

@DasLixou

DasLixou commented Nov 16, 2024

Copy link
Copy Markdown
Contributor Author

At least

let b = "";
{
    let muthack = use_mut(&cx, || b);
    muthack.with(move |c| {
        *c = &".".repeat(40).as_str();
    });
}

doesn't work..

@matthunz
matthunz force-pushed the main branch 2 times, most recently from 10b82d8 to 326e62c Compare November 18, 2024 08:27
@matthunz
matthunz force-pushed the main branch 3 times, most recently from 72f2ae5 to 5ae0a51 Compare December 9, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants