(&self, kind: StrKind)
| 7 | |
| 8 | pub trait StrBuffer: AsRef<Wtf8> { |
| 9 | fn is_compatible_with(&self, kind: StrKind) -> bool { |
| 10 | let s = self.as_ref(); |
| 11 | match kind { |
| 12 | StrKind::Ascii => s.is_ascii(), |
| 13 | StrKind::Utf8 => s.is_utf8(), |
| 14 | StrKind::Wtf8 => true, |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | pub trait CodecContext: Sized { |
no test coverage detected