#[non_exhaustive]pub enum IcuSyntaxPolicy {
Strict,
RuntimeLiteralApostrophes,
}Available on crate feature
catalog only.Expand description
ICU parser behavior used by catalog audit and runtime artifact validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Strict
Parse ICU MessageFormat v1 with Ferrocat’s strict apostrophe rules.
RuntimeLiteralApostrophes
Treat ordinary literal apostrophes as runtime-valid text before parsing.
Use this when a downstream runtime accepts messages such as you're
and We've got {count, plural, one {...} other {...}} without requiring
translators to double every literal apostrophe.
Callers that rely on ICU apostrophe quoting should keep Self::Strict.
Trait Implementations§
Source§impl Clone for IcuSyntaxPolicy
impl Clone for IcuSyntaxPolicy
Source§fn clone(&self) -> IcuSyntaxPolicy
fn clone(&self) -> IcuSyntaxPolicy
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 moreimpl Copy for IcuSyntaxPolicy
Source§impl Debug for IcuSyntaxPolicy
impl Debug for IcuSyntaxPolicy
Source§impl Default for IcuSyntaxPolicy
impl Default for IcuSyntaxPolicy
Source§fn default() -> IcuSyntaxPolicy
fn default() -> IcuSyntaxPolicy
Returns the “default value” for a type. Read more
impl Eq for IcuSyntaxPolicy
Source§impl PartialEq for IcuSyntaxPolicy
impl PartialEq for IcuSyntaxPolicy
Source§fn eq(&self, other: &IcuSyntaxPolicy) -> bool
fn eq(&self, other: &IcuSyntaxPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IcuSyntaxPolicy
Auto Trait Implementations§
impl Freeze for IcuSyntaxPolicy
impl RefUnwindSafe for IcuSyntaxPolicy
impl Send for IcuSyntaxPolicy
impl Sync for IcuSyntaxPolicy
impl Unpin for IcuSyntaxPolicy
impl UnsafeUnpin for IcuSyntaxPolicy
impl UnwindSafe for IcuSyntaxPolicy
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