(cs: &CallableSyntax)
| 609 | /// Gets the callable's syntax specification. |
| 610 | pub fn syntax(&self) -> String { |
| 611 | fn format_one(cs: &CallableSyntax) -> String { |
| 612 | let mut syntax = cs.describe(); |
| 613 | if syntax.is_empty() { |
| 614 | syntax.push_str("no arguments"); |
| 615 | } |
| 616 | syntax |
| 617 | } |
| 618 | |
| 619 | match self.syntaxes.as_slice() { |
| 620 | [] => panic!("Callables without syntaxes are not allowed at construction time"), |