Buf::to_string
pub fn to_string() -> string Import
Source: use fmt::{Buf}; src/fmt.hy Returns the text built so far.
Called on a Buf value as value.to_string(…).
Returns#
string
See also#
Buf: A string builder: append pieces, then take the text withto_string.Buf::new: Creates an empty builder.Buf::push_str: Appendss.Buf::push_int: Appendsnin decimal.Buf::push_hex: Appendsnin lowercase hexadecimal, without a0xprefix.Buf::pad_left: Pads the text on the left withfilluntil it is at leastwidthbytes long, and returns the builder.Buf::pad_right: Pads the text on the right withfilluntil it is at leastwidthbytes long, and returns the builder.