(s: &str)
| 5 | |
| 6 | impl SmallString { |
| 7 | pub fn new(s: &str) -> SmallString { |
| 8 | let bytes = s.as_bytes(); |
| 9 | let mut data = [0u8; 128]; |
| 10 | data[..bytes.len()].copy_from_slice(bytes); |
| 11 | SmallString { |
| 12 | data, |
| 13 | length: bytes.len(), |
| 14 | } |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected