Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Rust
/
Cell and RefCell
Which statement about Cell<String> is correct?
from Cell and RefCell
Rust 1.98
intermediate
1 min
Which statement about Cell<String> is correct?
It is valid, and replace can move out the old String while installing a new one.
It is invalid because every Cell value must implement Copy.
get returns &String and keeps a runtime shared borrow active.
It is Sync because Cell never returns references to its value.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload