/
germanubis
/
sqlx
Обзор
Документация
Войти
/
germanubis
/
sqlx
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
sqlx-core/src/io/buf_mut.rs
12 строк
228 B
Ryan Leckey
refactor(core): remove the HRTB (higher rank trait bound) on Row in the aim of improving ergonomics
31 май 2020, 02:09
Не верифицирован
31 май 2020, 02:09
757a930
Код
Авторство
О чём код?
use bytes::BufMut; pub trait BufMutExt: BufMut { fn put_str_nul(&mut self, s: &str); } impl BufMutExt for Vec<u8> { fn put_str_nul(&mut self, s: &str) { self.extend(s.as_bytes()); self.push(0); } }