You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the great project ! I was wondering if you had an example of adding "editable" to a mutable attribute (for example list) and updating the value without cloning it ?
Many thanks in advance !
For instance, in example.graph:
node X -> O { #[editable = "true"] x: list<i32>, }
We could the below but it is expensive as it is cloning the x attribute:
`
impl Runnable<Request, EResponse> for X {
type Resp = XResponse;
type Error = ();
Thank you for the great project ! I was wondering if you had an example of adding "editable" to a mutable attribute (for example list) and updating the value without cloning it ?
Right now we achieve the interior mutabilty using ArcSwap by default, which means it lacks the ability you required.
Maybe we can modify the DSL editable mark specification as follows:
node X -> O { #[editable = "::std::sync::RwLock"] x: list<i32> }
node X -> O { #[editable = "::std::cell::RefCell"] x: list<i32> }
It means the interior mutability controlled by the user, makes it more flexible.
Hi Team,
Thank you for the great project ! I was wondering if you had an example of adding "editable" to a mutable attribute (for example list) and updating the value without cloning it ?
Many thanks in advance !
For instance, in example.graph:
node X -> O { #[editable = "true"] x: list<i32>, }
We could the below but it is expensive as it is cloning the x attribute:
`
impl Runnable<Request, EResponse> for X {
type Resp = XResponse;
type Error = ();
}`
The text was updated successfully, but these errors were encountered: