| 1 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::databaserust-analyzer cargo sqlx-core 0.8.3 database/::Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#; |
| 2 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::poolrust-analyzer cargo sqlx-core 0.8.3 pool/::PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/connection/PoolConnection#; |
| 3 | 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#}; |
| 4 | |
| 5 | pub enum MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#<'c, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> { |
| 6 | #[allow(dead_code)] |
| 7 | Connectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#Connection#(&'c mut DB::Connectionrust-analyzer cargo sqlx-core 0.8.3 database/Database#Connection#), |
| 8 | PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#PoolConnection#(PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/connection/PoolConnection#<DB>), |
| 9 | } |
| 10 | |
| 11 | impl<'c, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref# for MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#<'c, DB> { |
| 12 | type Targetrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][Deref]Target# = DB::Connectionrust-analyzer cargo sqlx-core 0.8.3 database/Database#Connection#; |
| 13 | |
| 14 | #[inline] |
| 15 | fn derefrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][Deref]deref().(&self) -> &Selfrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][Deref]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# { |
| 16 | match self { |
| 17 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::Connectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#Connection#(v) => v, |
| 18 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#PoolConnection#(v) => v, |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | impl<'c, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut# for MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#<'c, DB> { |
| 24 | #[inline] |
| 25 | fn deref_mutrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][DerefMut]deref_mut().(&mut self) -> &mut Selfrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][DerefMut]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# { |
| 26 | match self { |
| 27 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::Connectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#Connection#(v) => v, |
| 28 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#PoolConnection#(v) => v, |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | impl<'c, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/connection/PoolConnection#<DB>> for MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#<'c, DB> { |
| 34 | fn fromrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][`From<PoolConnection<DB>>`]from().(v: PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/connection/PoolConnection#<DB>) -> Selfrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][`From<PoolConnection<DB>>`] { |
| 35 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::PoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#PoolConnection#(v) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | impl<'c, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<&'c mut DB::Connectionrust-analyzer cargo sqlx-core 0.8.3 database/Database#Connection#> for MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#<'c, DB> { |
| 40 | fn fromrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][`From<&'c mut <DB as Database>::Connection>`]from().(v: &'c mut DB::Connectionrust-analyzer cargo sqlx-core 0.8.3 database/Database#Connection#) -> Selfrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/impl#[`MaybePoolConnection<'c, DB>`][`From<&'c mut <DB as Database>::Connection>`] { |
| 41 | MaybePoolConnectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#::Connectionrust-analyzer cargo sqlx-core 0.8.3 pool/maybe/MaybePoolConnection#Connection#(v) |
| 42 | } |
| 43 | } |