(&self, f: &mut std::fmt::Formatter<'_>)
| 72 | |
| 73 | impl std::fmt::Display for Token { |
| 74 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 75 | write!( |
| 76 | f, |
| 77 | "{}", |
| 78 | if let Some(text) = &self.text { |
| 79 | text.clone() |
| 80 | } else { |
| 81 | format!("<token {}>", self.id) |
| 82 | } |
| 83 | ) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /// A model must implement this trait in order to be usable by the Cake framework. |
nothing calls this directly
no outgoing calls
no test coverage detected