Debian Codegraph @

src/io/encode.rs

raw symbols SCIP
1 pub trait ProtocolEncoderust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#<'en, Context = ()> {
2 fn encoderust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#encode().(&self, buf: &mut Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), craterust-analyzer cargo sqlx-core 0.8.3 crate/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>
3 where
4 Self: ProtocolEncoderust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#<'en, ()>,
5 {
6 self.encode_withrust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#encode_with().(buf, ())
7 }
8
9 fn encode_withrust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#encode_with().(&self, buf: &mut Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>, context: Context) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), craterust-analyzer cargo sqlx-core 0.8.3 crate/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>;
10 }
11
12 impl<'en, C> ProtocolEncoderust-analyzer cargo sqlx-core 0.8.3 io/encode/ProtocolEncode#<'en, C> for &'_ [u8] {
13 fn encode_withrust-analyzer cargo sqlx-core 0.8.3 io/encode/impl#[`&[u8]`][`ProtocolEncode<'en, C>`]encode_with().(&self, buf: &mut Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>, _context: C) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), craterust-analyzer cargo sqlx-core 0.8.3 crate/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> {
14 buf.extend_from_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]extend_from_slice().(self);
15 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
16 }
17 }