pub enum NumStyle {
Xpath10,
Libxml2,
Xpath20,
}Expand description
Number-to-string flavour — the serialization slice of the static
context. Xpath10 is XPath 1.0 §4.2 decimal-only, Libxml2 is
libxml2’s 1.23e+19 form, Xpath20 is the F&O §17.1.2 scientific
form (1.0E6) for xs:double/xs:float. xs:integer /
xs:decimal are decimal in every style, so integer output never
changes; only doubles/floats vary.
Callers that know their version pass the style explicitly (the
XSLT engine derives it from the stylesheet version); the
no-context value_to_string defaults to Xpath10.
Variants§
Implementations§
Trait Implementations§
impl Copy for NumStyle
impl Eq for NumStyle
impl StructuralPartialEq for NumStyle
Auto Trait Implementations§
impl Freeze for NumStyle
impl RefUnwindSafe for NumStyle
impl Send for NumStyle
impl Sync for NumStyle
impl Unpin for NumStyle
impl UnsafeUnpin for NumStyle
impl UnwindSafe for NumStyle
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