#[repr(transparent)]pub struct MultiNamedPlaceholderKey<'a>(pub &'a str);Expand description
A string wrapper for the MultiNamedPlaceholder pattern backend.
§Examples
use core::cmp::Ordering;
use core::str::FromStr;
use icu_pattern::MultiNamedPlaceholderKey;
use icu_pattern::MultiNamedPlaceholderPattern;
use icu_pattern::PatternItem;
// Parse the string syntax and check the resulting data store:
let pattern = MultiNamedPlaceholderPattern::try_from_str(
    "Hello, {person0} and {person1}!",
    Default::default(),
)
.unwrap();
assert_eq!(
    pattern.iter().cmp(
        [
            PatternItem::Literal("Hello, "),
            PatternItem::Placeholder(MultiNamedPlaceholderKey(
                "person0".into()
            )),
            PatternItem::Literal(" and "),
            PatternItem::Placeholder(MultiNamedPlaceholderKey(
                "person1".into()
            )),
            PatternItem::Literal("!")
        ]
        .into_iter()
    ),
    Ordering::Equal
);Tuple Fields§
§0: &'a strTrait Implementations§
Source§impl<'a> Clone for MultiNamedPlaceholderKey<'a>
 
impl<'a> Clone for MultiNamedPlaceholderKey<'a>
Source§fn clone(&self) -> MultiNamedPlaceholderKey<'a>
 
fn clone(&self) -> MultiNamedPlaceholderKey<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'a> Debug for MultiNamedPlaceholderKey<'a>
 
impl<'a> Debug for MultiNamedPlaceholderKey<'a>
Source§impl<'a> Ord for MultiNamedPlaceholderKey<'a>
 
impl<'a> Ord for MultiNamedPlaceholderKey<'a>
Source§fn cmp(&self, other: &MultiNamedPlaceholderKey<'a>) -> Ordering
 
fn cmp(&self, other: &MultiNamedPlaceholderKey<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for MultiNamedPlaceholderKey<'a>
 
impl<'a> PartialEq for MultiNamedPlaceholderKey<'a>
Source§fn eq(&self, other: &MultiNamedPlaceholderKey<'a>) -> bool
 
fn eq(&self, other: &MultiNamedPlaceholderKey<'a>) -> bool
Tests for 
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for MultiNamedPlaceholderKey<'a>
 
impl<'a> PartialOrd for MultiNamedPlaceholderKey<'a>
Source§impl<'k, K, W> PlaceholderValueProvider<MultiNamedPlaceholderKey<'k>> for BTreeMap<K, W>
 
impl<'k, K, W> PlaceholderValueProvider<MultiNamedPlaceholderKey<'k>> for BTreeMap<K, W>
type Error = MissingNamedPlaceholderError<'k>
Source§type W<'a> = Result<&'a W, <BTreeMap<K, W> as PlaceholderValueProvider<MultiNamedPlaceholderKey<'k>>>::Error>
where
    Self: 'a
 
type W<'a> = Result<&'a W, <BTreeMap<K, W> as PlaceholderValueProvider<MultiNamedPlaceholderKey<'k>>>::Error> where Self: 'a
Source§fn value_for<'a>(&'a self, key: MultiNamedPlaceholderKey<'k>) -> Self::W<'a>
 
fn value_for<'a>(&'a self, key: MultiNamedPlaceholderKey<'k>) -> Self::W<'a>
Returns the 
TryWriteable to substitute for the given placeholder. Read moreimpl<'a> Eq for MultiNamedPlaceholderKey<'a>
impl<'a> StructuralPartialEq for MultiNamedPlaceholderKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for MultiNamedPlaceholderKey<'a>
impl<'a> RefUnwindSafe for MultiNamedPlaceholderKey<'a>
impl<'a> Send for MultiNamedPlaceholderKey<'a>
impl<'a> Sync for MultiNamedPlaceholderKey<'a>
impl<'a> Unpin for MultiNamedPlaceholderKey<'a>
impl<'a> UnwindSafe for MultiNamedPlaceholderKey<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more