pub enum IcuFormatterSupport {
Supported,
UnsupportedKind {
severity: IcuDiagnosticSeverity,
},
UnsupportedStyle {
severity: IcuDiagnosticSeverity,
},
}Expand description
Consumer-defined support decision for an ICU formatter.
Variants§
Supported
The formatter kind and style are supported by the consumer.
UnsupportedKind
The formatter kind is not supported by the consumer.
Use this when a runtime cannot handle the formatter category at all,
such as rejecting every list formatter.
Fields
§
severity: IcuDiagnosticSeveritySeverity to attach to the emitted diagnostic.
UnsupportedStyle
The formatter style is not supported by the consumer.
Use this when a runtime accepts the formatter kind but rejects the specific style. A missing style is treated as the formatter’s default style; reject it with this variant when the default style is unsupported.
Fields
§
severity: IcuDiagnosticSeveritySeverity to attach to the emitted diagnostic.
Trait Implementations§
Source§impl Clone for IcuFormatterSupport
impl Clone for IcuFormatterSupport
Source§fn clone(&self) -> IcuFormatterSupport
fn clone(&self) -> IcuFormatterSupport
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 IcuFormatterSupport
Source§impl Debug for IcuFormatterSupport
impl Debug for IcuFormatterSupport
impl Eq for IcuFormatterSupport
Source§impl PartialEq for IcuFormatterSupport
impl PartialEq for IcuFormatterSupport
Source§fn eq(&self, other: &IcuFormatterSupport) -> bool
fn eq(&self, other: &IcuFormatterSupport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IcuFormatterSupport
Auto Trait Implementations§
impl Freeze for IcuFormatterSupport
impl RefUnwindSafe for IcuFormatterSupport
impl Send for IcuFormatterSupport
impl Sync for IcuFormatterSupport
impl Unpin for IcuFormatterSupport
impl UnsafeUnpin for IcuFormatterSupport
impl UnwindSafe for IcuFormatterSupport
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