| 1 | use superrust-analyzer cargo colored 3.1.1 crate/::ColoredStringrust-analyzer cargo colored 3.1.1 ColoredString#; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#, fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/}; |
| 3 | |
| 4 | pub struct ColoredStringErrorrust-analyzer cargo colored 3.1.1 error/ColoredStringError#(pub ColoredStringrust-analyzer cargo colored 3.1.1 ColoredString#); |
| 5 | |
| 6 | impl ColoredStringErrorrust-analyzer cargo colored 3.1.1 error/ColoredStringError# { |
| 7 | fn fmtrust-analyzer cargo colored 3.1.1 error/impl#[ColoredStringError]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 8 | writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "{}", self.0rust-analyzer cargo colored 3.1.1 error/ColoredStringError#0.) |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for ColoredStringErrorrust-analyzer cargo colored 3.1.1 error/ColoredStringError# { |
| 13 | fn fmtrust-analyzer cargo colored 3.1.1 error/impl#[ColoredStringError][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 14 | self.fmtrust-analyzer cargo colored 3.1.1 error/impl#[ColoredStringError]fmt().(f) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for ColoredStringErrorrust-analyzer cargo colored 3.1.1 error/ColoredStringError# { |
| 19 | fn fmtrust-analyzer cargo colored 3.1.1 error/impl#[ColoredStringError][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 20 | self.fmtrust-analyzer cargo colored 3.1.1 error/impl#[ColoredStringError]fmt().(f) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | impl Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for ColoredStringErrorrust-analyzer cargo colored 3.1.1 error/ColoredStringError# {} |