Type Alias icu::pattern::DoublePlaceholderPattern
source · pub type DoublePlaceholderPattern = Pattern<DoublePlaceholder>;
Expand description
§Examples
use core::str::FromStr;
use icu_pattern::DoublePlaceholderPattern;
use writeable::assert_writeable_eq;
// Create a pattern from the string syntax:
let pattern = DoublePlaceholderPattern::try_from_str(
"Hello, {0} and {1}!",
Default::default(),
)
.unwrap();
// Interpolate some values into the pattern:
assert_writeable_eq!(
pattern.interpolate(["Alice", "Bob"]),
"Hello, Alice and Bob!"
);
Aliased Type§
struct DoublePlaceholderPattern {
pub store: str,
/* private fields */
}
Fields§
§store: str
The encoded storage