pub trait Showable {
// Required method
fn format_show(&self, f: &mut Formatter<'_>) -> Result;
}Expand description
Custom trait for LOGOS Show verb - provides clean, natural output. Primitives display without quotes, collections display with brackets.
Required Methods§
fn format_show(&self, f: &mut Formatter<'_>) -> Result
Implementations on Foreign Types§
Source§impl Showable for LogosValue
A value the exact extension reaches prints as the interpreter prints it: its canonical form, the
exact types in their own notation.
impl Showable for LogosValue
A value the exact extension reaches prints as the interpreter prints it: its canonical form, the exact types in their own notation.
fn format_show(&self, f: &mut Formatter<'_>) -> Result
Source§impl Showable for LogosInt
The exact compiled integer (i64 fast path, BigInt spill) prints as the
plain number — indistinguishable from an i64 Show.
impl Showable for LogosInt
The exact compiled integer (i64 fast path, BigInt spill) prints as the
plain number — indistinguishable from an i64 Show.
fn format_show(&self, f: &mut Formatter<'_>) -> Result
Source§impl Showable for LogosComplex
impl Showable for LogosComplex
fn format_show(&self, f: &mut Formatter<'_>) -> Result
Source§impl Showable for LogosComplexF
The floating-point complex prints like the exact one (2+i, 4+6i) via its Display.
impl Showable for LogosComplexF
The floating-point complex prints like the exact one (2+i, 4+6i) via its Display.