#[derive(Debug)] struct Foo { stream: Option<i32>, } impl Foo { fn send(&mut self) { if let Some(ref mut x) = self.stream { *x += 1; } ...
確定! 回上一頁