pub struct StringMandatoryLocale;
Expand description
A struct representing a mandatory locale for string processing.
The StringMandatoryLocale
struct is a placeholder or marker to enforce the use
of a specific locale in processes or systems that require a string to always be
associated with a locale. This struct does not currently carry any data or functionality
on its own but can be used for typing or enforcing constraints within a program.
§Use Case
- Enforcing locale-specific business logic.
- Providing stricter typing in functions or structs requiring locale-based string operations.
§Key
validate-cannot-be-empty
Trait Implementations§
Source§impl LocaleMessage for StringMandatoryLocale
impl LocaleMessage for StringMandatoryLocale
fn get_locale_data(&self) -> LocaleData
Auto Trait Implementations§
impl Freeze for StringMandatoryLocale
impl RefUnwindSafe for StringMandatoryLocale
impl Send for StringMandatoryLocale
impl Sync for StringMandatoryLocale
impl Unpin for StringMandatoryLocale
impl UnwindSafe for StringMandatoryLocale
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