Constructs an `Encoding` from its string representation. Unsafe because the caller must ensure the string is a valid encoding.
(code: &str)
| 41 | /// Constructs an `Encoding` from its string representation. |
| 42 | /// Unsafe because the caller must ensure the string is a valid encoding. |
| 43 | pub unsafe fn from_str(code: &str) -> Encoding { |
| 44 | from_str(code) |
| 45 | } |
| 46 | |
| 47 | /// Returns self as a `str`. |
| 48 | pub fn as_str(&self) -> &str { |
nothing calls this directly
no test coverage detected