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
This AIP covers adding a set of new native functions, for value manipulation, that improve functionality and performance:
mem::swap - Swaps contents of two mutable references.
vector::move_range - (efficiently) Moves range of elements from one vector to another vector at specific position, keep the order of the rest of the elements.
cmp::compare - Compares two move values of the same type.
bcs::constant_serialized_size - If the type has known constant (always the same, independent of instance) serialized size in BCS format, allows obtaining it.
AIP Discussion
Summary
This AIP covers adding a set of new native functions, for value manipulation, that improve functionality and performance:
mem::swap
- Swaps contents of two mutable references.vector::move_range
- (efficiently) Moves range of elements from one vector to another vector at specific position, keep the order of the rest of the elements.cmp::compare
- Compares two move values of the same type.bcs::constant_serialized_size
- If the type has known constant (always the same, independent of instance) serialized size in BCS format, allows obtaining it.Out of scope
Only above utility functions are within scope.
Read more about it here: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-105.md
The text was updated successfully, but these errors were encountered: