Move.

帖子

分享您的知识。

yhant3.
Mar 21, 2025
专家问答

Does `address` type have `Copy` in Move language?

I'm coming from a JavaScript background without Rust experience, and I'm trying to understand the Move programming language. Specifically, does the address type have the Copy trait like it does for primitive types? And do I need to use references to pass addresses around in Move?

  • Move CLI
  • Move
1
1
分享
评论
.

答案

1
tomek.
Mar 22 2025, 01:28

M addressove 中的类型是原始类型,类似于u64,因此您可以通过引用或值来传递它. 此外,还有一些模块 sui::address``std::address,它们提供与地址相关的有用功能.

2
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动七月