Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustCow clone-on-writeSingle-choice MCQ

A struct field is `tags: Cow<'a, [String]>`. What is the main practical payoff of this over `Vec<String>`?

use std::borrow::Cow; struct Config<'a> { tags: Cow<'a, [String]>, }