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
I really love the magic move animations as they are an incredible tool for helping to grasp the difference between two pieces of code. For illustrating building FFI bindings I tried this with
````md magic-move```cint add(const int left, const int right) { return left + right}``````rustuse core::ffi::c_int;#[unsafe(no_mangle)]pub extern "C" fn add(left: c_int, right: c_int) -> c_int { left + right}```````
which already gave me a decent visualization. For example, function name, the parameters left and right, the addition left + right were automagically animated.
Is there a way to annotate this for going even further and animate for example the transformation of types from const intto c_int and the return type from int before the function name to c_int after the function?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I really love the magic move animations as they are an incredible tool for helping to grasp the difference between two pieces of code. For illustrating building FFI bindings I tried this with
which already gave me a decent visualization. For example, function name, the parameters
leftandright, the additionleft + rightwere automagically animated.Is there a way to annotate this for going even further and animate for example the transformation of types from
const inttoc_intand the return type fromintbefore the function name toc_intafter the function?Beta Was this translation helpful? Give feedback.
All reactions