#[repr(C, u8)]pub enum LanguageCondition {
Exact(AzString),
Prefix(AzString),
}Expand description
Language/Locale condition for @lang() CSS selector Matches BCP 47 language tags with prefix matching
Variants§
Exact(AzString)
Exact match (e.g., “de-DE” matches only “de-DE”)
Prefix(AzString)
Prefix match (e.g., “de” matches “de”, “de-DE”, “de-AT”, etc.)
Implementations§
Trait Implementations§
Source§impl Clone for LanguageCondition
impl Clone for LanguageCondition
Source§fn clone(&self) -> LanguageCondition
fn clone(&self) -> LanguageCondition
Returns a duplicate 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 Debug for LanguageCondition
impl Debug for LanguageCondition
Source§impl Hash for LanguageCondition
impl Hash for LanguageCondition
Source§impl PartialEq for LanguageCondition
impl PartialEq for LanguageCondition
impl Eq for LanguageCondition
impl StructuralPartialEq for LanguageCondition
Auto Trait Implementations§
impl Freeze for LanguageCondition
impl RefUnwindSafe for LanguageCondition
impl Send for LanguageCondition
impl Sync for LanguageCondition
impl Unpin for LanguageCondition
impl UnwindSafe for LanguageCondition
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