OxL Справочник OxL
РусскийEnglish

interface Show

Types that can be interpolated into text ("{x}") and printed; every data type has it automatically.

Example:

oxl✓ проверяется в CI
data Point { x: i32; y: i32 }

fn main() io {
  print("{Point{ x: 1, y: 2 }}")
}
Вывод
Point{x: 1, y: 2}
pub(api) interface Show

С версии. 1.0.0-beta

Определено в: std/core/types.oxl:897

См. также