示例代码. // 引入triats Deref DerefMut use std::ops::{Deref, DerefMut}; #[derive(Debug)] pub struct Node { x: i32, y: i32, w: u32, h: u32, } impl Node { fn ...
確定! 回上一頁