#[non_exhaustive]pub struct IcuParserOptions {
pub ignore_tag: bool,
pub requires_other_clause: bool,
}Expand description
Options controlling ICU parsing behavior.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ignore_tag: boolWhen true, rich-text style tags are treated as plain text.
requires_other_clause: boolWhen true, select and plural arguments must include an other clause.
Implementations§
Source§impl IcuParserOptions
impl IcuParserOptions
Sourcepub fn with_ignore_tag(self, ignore_tag: bool) -> IcuParserOptions
pub fn with_ignore_tag(self, ignore_tag: bool) -> IcuParserOptions
Returns options that enable or disable rich-text tag parsing.
Sourcepub fn with_requires_other_clause(
self,
requires_other_clause: bool,
) -> IcuParserOptions
pub fn with_requires_other_clause( self, requires_other_clause: bool, ) -> IcuParserOptions
Returns options that enable or disable required other clauses.
Trait Implementations§
Source§impl Clone for IcuParserOptions
impl Clone for IcuParserOptions
Source§fn clone(&self) -> IcuParserOptions
fn clone(&self) -> IcuParserOptions
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 IcuParserOptions
impl Debug for IcuParserOptions
Source§impl Default for IcuParserOptions
impl Default for IcuParserOptions
Source§fn default() -> IcuParserOptions
fn default() -> IcuParserOptions
Returns the “default value” for a type. Read more
impl Eq for IcuParserOptions
Source§impl PartialEq for IcuParserOptions
impl PartialEq for IcuParserOptions
Source§fn eq(&self, other: &IcuParserOptions) -> bool
fn eq(&self, other: &IcuParserOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IcuParserOptions
Auto Trait Implementations§
impl Freeze for IcuParserOptions
impl RefUnwindSafe for IcuParserOptions
impl Send for IcuParserOptions
impl Sync for IcuParserOptions
impl Unpin for IcuParserOptions
impl UnsafeUnpin for IcuParserOptions
impl UnwindSafe for IcuParserOptions
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