帖子
分享您的知识。
yhant3251
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
分享
评论
答案
1tomek180
Mar 22 2025, 01:28M address
ove 中的类型是原始类型,类似于u64
,因此您可以通过引用或值来传递它. 此外,还有一些模块 sui::address``std::address
,它们提供与地址相关的有用功能.
2
评论
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148帖子231答案