MCPcopy Create free account
hub / github.com/hashintel/hash / to_str_utf8

Method to_str_utf8

libs/error-stack/src/fmt/mod.rs:401–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399
400impl Symbol {
401 const fn to_str_utf8(self) -> &'static str {
402 match self {
403 Self::Vertical => "\u{2502}", // │
404 Self::VerticalRight => "\u{251c}", // ├
405 Self::Horizontal => "\u{2500}", // ─
406 Self::HorizontalLeft => "\u{2574}", // ╴
407 Self::HorizontalDown => "\u{252c}", // ┬
408 Self::ArrowRight => "\u{25b6}", // ▶
409 Self::CurveRight => "\u{2570}", // ╰
410 Self::Space => " ",
411 }
412 }
413
414 const fn to_str_ascii(self) -> &'static str {
415 match self {

Callers 1

to_strMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected