#[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 (const: unstable) · 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
impl Eq for LanguageCondition
Source§impl Hash for LanguageCondition
impl Hash for LanguageCondition
Source§impl Ord for LanguageCondition
impl Ord for LanguageCondition
Source§fn cmp(&self, other: &LanguageCondition) -> Ordering
fn cmp(&self, other: &LanguageCondition) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for LanguageCondition
impl PartialEq for LanguageCondition
Source§impl PartialOrd for LanguageCondition
impl PartialOrd 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 UnsafeUnpin 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