pub struct ICU4XList(pub Vec<String>);
Expand description
A list of strings
Tuple Fields§
§0: Vec<String>
Implementations§
source§impl ICU4XList
impl ICU4XList
sourcepub fn create_with_capacity(capacity: usize) -> Box<ICU4XList>
pub fn create_with_capacity(capacity: usize) -> Box<ICU4XList>
Create a new list of strings with preallocated space to hold
at least capacity
elements
sourcepub fn push(&mut self, val: &DiplomatStr)
pub fn push(&mut self, val: &DiplomatStr)
Push a string to the list
Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
Auto Trait Implementations§
impl Freeze for ICU4XList
impl RefUnwindSafe for ICU4XList
impl Send for ICU4XList
impl Sync for ICU4XList
impl Unpin for ICU4XList
impl UnwindSafe for ICU4XList
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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