Skip to content

https://rustx-labs.github.io/effective-rust-cn/chapter_1/item8-references&pointer.html 这本书的第8条中 #54

Open
@xuejianxinokok

Description

@xuejianxinokok

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 为什么画成 胖指针? 哪位大佬能解释一下?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions