# Rust 常用T'r'a'i't **Published by:** [Yyf.doge:>](https://paragraph.com/@yyf-doge/) **Published on:** 2022-08-10 **URL:** https://paragraph.com/@yyf-doge/rust-t-r-a-i-t ## Content 常用Trait更新中 bool 类型转换 to_string fn boolean_to_string(b: bool) -> String { b.to_string() } ## Publication Information - [Yyf.doge:>](https://paragraph.com/@yyf-doge/): Publication homepage - [All Posts](https://paragraph.com/@yyf-doge/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@yyf-doge): Subscribe to updates