(s: &str)
| 10 | |
| 11 | impl SectionKind { |
| 12 | pub fn from_str(s: &str) -> Self { |
| 13 | match s.trim() { |
| 14 | ".text" => Self::Text, |
| 15 | ".data" => Self::Data, |
| 16 | ".rodata" => Self::RoData, |
| 17 | ".bss" => Self::Bss, |
| 18 | other => Self::Custom(other.to_owned()), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | pub fn name(&self) -> &str { |
| 23 | match self { |
nothing calls this directly
no outgoing calls
no test coverage detected