...
参考
[GitHub - gakonst/foundry: Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.](https://github.com/gakonst/foundry)
[Getting Started With Forge — Wilson (mirror.xyz)](https://w.mirror.xyz/mOUlpgkWA178HNUW7xR20TdbGRV6dMid7uChqxf...
... }
fn introduce(&self) {
println!("Hello, my name is {} and I am {} years old.", self.name, self.age);
}
}
fn main() {
let person = Person::new(String::from("Alice"), 30);
person.introduce();
}
```
### Trait 对象
**定义 Trait**
定义 Trait:使用...
...rce_ptr: u32) -> u32;
+}
+
/// Creates a memory region of capacity `size` and length 0. Returns a pointer to the Region.
/// This is the same as the `allocate` export, but designed to be called internally.
pub fn alloc(size: usize) -> *mut Region {
+
+ let source = build_region("".as_bytes());...