Lines Matching defs:std
30 pub fn ansi(&self) -> impl std::fmt::Display + '_ {
199 pub(crate) fn write_colored(&self, buffer: &mut termcolor::Buffer) -> std::io::Result<()> {
200 use std::io::Write;
246 impl From<std::string::String> for StyledStr {
247 fn from(name: std::string::String) -> Self {
254 impl From<&'_ std::string::String> for StyledStr {
255 fn from(name: &'_ std::string::String) -> Self {
277 fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
283 fn cmp(&self, other: &Self) -> std::cmp::Ordering {
295 impl std::fmt::Display for StyledStr {
296 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
298 ok!(std::fmt::Display::fmt(content, f));
311 impl std::fmt::Display for AnsiDisplay<'_> {
312 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
317 .map_err(|_| std::fmt::Error));
319 let buffer = ok!(String::from_utf8(buffer).map_err(|_| std::fmt::Error));
320 ok!(std::fmt::Display::fmt(&buffer, f));