Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustCell vs RefCellSingle-choice MCQ

For a non-Copy type like String stored in a Cell<String>, which is the only one of these that compiles and lets you read the current value?

use std::cell::Cell; let c = Cell::new(String::from("hi"));