You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Wraps a borrowed reference to a value in a `RefCell` box./// A wrapper type for an immutably borrowed value from a `RefCell<T>`.pubstructRef<'b,T: ?Sized + 'b>{// NB: we use a pointer instead of `&'b T` to avoid `noalias` violations, because a// `Ref` argument doesn't hold immutability for its whole scope, only until it drops.// `NonNull` is also covariant over `T`, just like we would have with `&T`.value:NonNull<T>,borrow:BorrowRef<'b>,}
use std::cell::RefCell;
let rc: RefCell = RefCell::new(42);
let b1 = rc.borrow();
let b2 = rc.borrow();
在其 图片 https://rustx-labs.github.io/effective-rust-cn/images/item8/refcell.svg 中 b1,b2 为什么画成 胖指针? 哪位大佬能解释一下?

The text was updated successfully, but these errors were encountered: