pub struct TextInfo { /* private fields */ }Expand description
The text conventions of a culture (C# TextInfo).
Only the conventions of the invariant culture are built in: those of
other cultures come from the provider registered with the locator (see
ICultureDataProvider); a culture without
data gets the conventions of its nearest parent that has data and finally
the invariant ones.
Implementations§
Source§impl TextInfo
impl TextInfo
Sourcepub fn new() -> TextInfo
pub fn new() -> TextInfo
The conventions of the invariant culture, to be changed with the setters.
Sourcepub fn invariant_info() -> Rc<TextInfo>
pub fn invariant_info() -> Rc<TextInfo>
The conventions of the invariant culture.
Sourcepub fn current_info() -> Rc<TextInfo>
pub fn current_info() -> Rc<TextInfo>
The conventions of the current culture.
Sourcepub fn list_separator(&self) -> &str
pub fn list_separator(&self) -> &str
Gets the string that separates items in a list (C# ListSeparator).
Sourcepub fn set_list_separator(&mut self, value: impl Into<String>)
pub fn set_list_separator(&mut self, value: impl Into<String>)
Sets the string that separates items in a list.
Sourcepub fn with_list_separator(self, value: impl Into<String>) -> Self
pub fn with_list_separator(self, value: impl Into<String>) -> Self
The conventions with the given list separator.
Trait Implementations§
impl Eq for TextInfo
impl StructuralPartialEq for TextInfo
Auto Trait Implementations§
impl Freeze for TextInfo
impl RefUnwindSafe for TextInfo
impl Send for TextInfo
impl Sync for TextInfo
impl Unpin for TextInfo
impl UnsafeUnpin for TextInfo
impl UnwindSafe for TextInfo
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more