Trait icu::pattern::PlaceholderValueProvider
source · pub trait PlaceholderValueProvider<K> {
type Error;
type W<'a>: TryWriteable<Error = Self::Error>
where Self: 'a;
const LITERAL_PART: Part;
// Required method
fn value_for(&self, key: K) -> (Self::W<'_>, Part);
}
Expand description
Trait implemented on collections that can produce TryWriteable
s for interpolation.
This trait determines the Part
s produced by the writeable. In this crate, implementations
of this trait default to using PATTERN_LITERAL_PART
and PATTERN_PLACEHOLDER_PART
.
Required Associated Types§
Required Associated Constants§
const LITERAL_PART: Part
Required Methods§
Object Safety§
This trait is not object safe.