Hi,

On Tue, Oct 1, 2013 at 9:13 AM, Oren Ben-Kiki <[email protected]> wrote:
> I know, this is pretty horrible... what is the "right thing" here? Using
> {:s} and keep calling .to_str() everywhere?
>

Not sure if that helps. But in python there are conversion specifiers
"{!s}" and "{!r}" which convert to string explicitly, then you can
apply ":s" formatting even if the object that is being formatted is
not an string e.g.: "{!s:10s}".format(10). So I suggest using
conversion specifier to call ".to_str()".

-- 
Paul
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to