pub enum InterpolationFormatSpec {
Fixed {
precision: u8,
},
Table(TableFormatSpec),
ContentStyle(ContentFormatSpec),
}Expand description
Typed format specification for interpolation expressions.
Variants§
Fixed
Fixed-point numeric precision (fixed(2)).
Table(TableFormatSpec)
Tabular formatting for DataTable-like values (table(...)).
ContentStyle(ContentFormatSpec)
Content-styling specification (R8 W4 W18.4 — supervisor 2026-05-24
D1 + (a-modified) REVIVE-WITH-SHARED-MODULE). Parsed from f-string
styling syntax like {x:bold,red} / {x:fg(blue),italic}.
The presence of this variant in any interpolation part flips the
f-string’s return type from string to content per D1’s
syntax-determined rule.
Trait Implementations§
Source§impl Clone for InterpolationFormatSpec
impl Clone for InterpolationFormatSpec
Source§fn clone(&self) -> InterpolationFormatSpec
fn clone(&self) -> InterpolationFormatSpec
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 InterpolationFormatSpec
impl Debug for InterpolationFormatSpec
Source§impl PartialEq for InterpolationFormatSpec
impl PartialEq for InterpolationFormatSpec
Source§fn eq(&self, other: &InterpolationFormatSpec) -> bool
fn eq(&self, other: &InterpolationFormatSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InterpolationFormatSpec
impl StructuralPartialEq for InterpolationFormatSpec
Auto Trait Implementations§
impl Freeze for InterpolationFormatSpec
impl RefUnwindSafe for InterpolationFormatSpec
impl Send for InterpolationFormatSpec
impl Sync for InterpolationFormatSpec
impl Unpin for InterpolationFormatSpec
impl UnsafeUnpin for InterpolationFormatSpec
impl UnwindSafe for InterpolationFormatSpec
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