inline fn bool.to_str(bool) -> [Str] if { "true" } else { "false" } impl Write { inline fn write(bool: b u64: fd) { b bool.to_str fd write } } impl ToString { inline fn to_string(bool) -> [String] { bool.to_str String.new } } impl ToString<&bool> { inline fn to_string(&bool) -> [String] { @ to_string } } impl Format { inline fn fmt(String bool) -> [String] { bool.to_str String.push_str } } impl Format<&bool> { inline fn fmt(String &bool) -> [String] { @ fmt } }