Debian Codegraph @

src/common/mod.rs

raw symbols SCIP
1 mod statement_cacherust-analyzer cargo sqlx-core 0.8.3 common/statement_cache/;
2
3 pub use statement_cacherust-analyzer cargo sqlx-core 0.8.3 common/statement_cache/::StatementCacherust-analyzer cargo sqlx-core 0.8.3 common/statement_cache/StatementCache#;
4 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::{Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#, Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#};
5 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::{Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#, DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut#};
6
7 /// A wrapper for `Fn`s that provides a debug impl that just says "Function"
8 pub struct DebugFnrust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#<F: ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#>(pub F);
9
10 impl<F: ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#> Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref# for DebugFnrust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#<F> {
11 type Targetrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][Deref]Target# = F;
12
13 fn derefrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][Deref]deref().(&self) -> &Selfrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][Deref]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# {
14 &self.0rust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#0.
15 }
16 }
17
18 impl<F: ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#> DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut# for DebugFnrust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#<F> {
19 fn deref_mutrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][DerefMut]deref_mut().(&mut self) -> &mut Selfrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][DerefMut]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# {
20 &mut self.0rust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#0.
21 }
22 }
23
24 impl<F: ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#> Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for DebugFnrust-analyzer cargo sqlx-core 0.8.3 common/DebugFn#<F> {
25 fn fmtrust-analyzer cargo sqlx-core 0.8.3 common/impl#[`DebugFn<F>`][Debug]fmt().(&self, f: &mut Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
26 f.debug_tuplerust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]debug_tuple().("Function").finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]finish().()
27 }
28 }