← Quit0 / 0 correct
Why can't you write a safe self-referential struct like this directly?
struct Doc {
text: String,
first_word: &str, // points into text
}Why can't you write a safe self-referential struct like this directly?
struct Doc {
text: String,
first_word: &str, // points into text
}