Method in fmt · Buf coil-stdlib

Buf::push_str

pub fn push_str(string s)
Import
use fmt::{Buf};
Source: src/fmt.hy

Appends s.

Called on a Buf value as value.push_str(…).

Parameters#

NameType
sstring

See also#

  • Buf: A string builder: append pieces, then take the text with to_string.
  • Buf::new: Creates an empty builder.
  • Buf::push_int: Appends n in decimal.
  • Buf::push_hex: Appends n in lowercase hexadecimal, without a 0x prefix.
  • Buf::to_string: Returns the text built so far.
  • Buf::pad_left: Pads the text on the left with fill until it is at least width bytes long, and returns the builder.
  • Buf::pad_right: Pads the text on the right with fill until it is at least width bytes long, and returns the builder.
↑ ↓ navigate ↵ open