Pudu programming language
Menu
API reference

Std.Fmt.text

1 declaration

fn

text: &Std.Fmt.Spec -> Str -> Str

This is a callable function.

What it does

Text placed within the spec's width.

Content at least as wide as the width is answered unchanged, so shaping a

column never costs a character that was there.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.FmtSearch related declarations