Struct icu_messageformat_parser::ParserOptions
source · [−]pub struct ParserOptions {
pub ignore_tag: bool,
pub requires_other_clause: bool,
pub should_parse_skeletons: bool,
pub capture_location: bool,
pub locale: Option<String>,
}Fields
ignore_tag: boolWhether to treat HTML/XML tags as string literal instead of parsing them as tag token. When this is false we only allow simple tags without any attributes
requires_other_clause: boolShould select, selectordinal, and plural arguments always include
the other case clause.
should_parse_skeletons: boolWhether to parse number/datetime skeleton into Intl.NumberFormatOptions and Intl.DateTimeFormatOptions, respectively
capture_location: boolCapture location info in AST Default is false
locale: Option<String>Instance of Intl.Locale to resolve locale-dependent skeleton
Implementations
Trait Implementations
sourceimpl Clone for ParserOptions
impl Clone for ParserOptions
sourcefn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ParserOptions
impl Debug for ParserOptions
sourceimpl Default for ParserOptions
impl Default for ParserOptions
sourcefn default() -> ParserOptions
fn default() -> ParserOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ParserOptions
impl<'de> Deserialize<'de> for ParserOptions
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ParserOptions> for ParserOptions
impl PartialEq<ParserOptions> for ParserOptions
sourcefn eq(&self, other: &ParserOptions) -> bool
fn eq(&self, other: &ParserOptions) -> bool
sourceimpl Serialize for ParserOptions
impl Serialize for ParserOptions
impl Eq for ParserOptions
impl StructuralEq for ParserOptions
impl StructuralPartialEq for ParserOptions
Auto Trait Implementations
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more