| 2407 | |
| 2408 | impl Debug for Function { |
| 2409 | fn fmt(&self, f: &mut Formatter) -> std::fmt::Result { |
| 2410 | // TODO: I am sure there is more we should add to this. |
| 2411 | f.debug_struct("Function") |
| 2412 | .field("start", &self.start()) |
| 2413 | .field("arch", &self.arch().name()) |
| 2414 | .field("platform", &self.platform()) |
| 2415 | .field("symbol", &self.symbol()) |
| 2416 | .field("is_auto", &self.is_auto()) |
| 2417 | .field("tags", &self.tags().to_vec()) |
| 2418 | .field("comments", &self.comments().to_vec()) |
| 2419 | .finish() |
| 2420 | } |
| 2421 | } |
| 2422 | |
| 2423 | unsafe impl Send for Function {} |