☰
Debian Codegraph
@
0.8.3-3
/
/
src
/
io
/
buf_mut.rs
☽
☼
src/io/buf_mut.rs
code
plain
raw
symbols
SCIP
MIT
or
Apache-2.0
2020-2023 LaunchBadge, LLC
debian/copyright
1
use
bytes
::
BufMut
;
2
3
pub trait
BufMutExt
:
BufMut
{
4
fn
put_str_nul
(&mut
self
,
s
: &str);
5
}
6
7
impl
BufMutExt
for
Vec
<u8> {
8
fn
put_str_nul
(&mut
self
,
s
: &str) {
9
self
.
extend
(
s
.
as_bytes
());
10
self
.
push
(0);
11
}
12
}