Debian Codegraph @

src/any/row.rs

raw symbols SCIP
1 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/::errorrust-analyzer cargo sqlx-core 0.8.3 any/error/::mismatched_typesrust-analyzer cargo sqlx-core 0.8.3 any/error/mismatched_types().;
2 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/::{Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#, AnyColumnrust-analyzer cargo sqlx-core 0.8.3 any/column/AnyColumn#, AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#, AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#, AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#, AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#};
3 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::columnrust-analyzer cargo sqlx-core 0.8.3 column/::{Columnrust-analyzer cargo sqlx-core 0.8.3 column/Column#, ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#};
4 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#;
5 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::decoderust-analyzer cargo sqlx-core 0.8.3 decode/::Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#;
6 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#;
7 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::extrust-analyzer cargo sqlx-core 0.8.3 ext/::ustrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/::UStrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/UStr#;
8 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::rowrust-analyzer cargo sqlx-core 0.8.3 row/::Rowrust-analyzer cargo sqlx-core 0.8.3 row/Row#;
9 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::type_inforust-analyzer cargo sqlx-core 0.8.3 type_info/::TypeInforust-analyzer cargo sqlx-core 0.8.3 type_info/TypeInfo#;
10 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#;
11 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::valuerust-analyzer cargo sqlx-core 0.8.3 value/::{Valuerust-analyzer cargo sqlx-core 0.8.3 value/Value#, ValueRefrust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#};
12 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::syncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std sync/::Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#;
13
14 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)]
15 pub struct AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow# {
16 #[doc(hidden)]
17 pub column_namesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#column_names.: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<craterust-analyzer cargo sqlx-core 0.8.3 crate/::HashMaprust-analyzer cargo hashbrown 0.17.1 map/HashMap#<UStrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/UStr#, usize>>,
18 #[doc(hidden)]
19 pub columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#columns.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<AnyColumnrust-analyzer cargo sqlx-core 0.8.3 any/column/AnyColumn#>,
20 #[doc(hidden)]
21 pub valuesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#values.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#>,
22 }
23
24 impl Rowrust-analyzer cargo sqlx-core 0.8.3 row/Row# for AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow# {
25 type Databaserust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]Database# = Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#;
26
27 fn columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]columns().(&self) -> &[AnyColumnrust-analyzer cargo sqlx-core 0.8.3 any/column/AnyColumn#] {
28 &self.columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#columns.
29 }
30
31 fn try_get_rawrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]try_get_raw().<I>(&self, index: I) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<<Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::ValueRefrust-analyzer cargo sqlx-core 0.8.3 database/Database#ValueRef#<'_>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>
32 where
33 I: ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#<Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]>,
34 {
35 let index = index.indexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#index().(self)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
36 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(self
37 .valuesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#values.
38 .getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]get().(index)
39 .ok_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]ok_or_else().(|| Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::ColumnIndexOutOfBoundsrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnIndexOutOfBounds# {
40 indexrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnIndexOutOfBounds#index.,
41 lenrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnIndexOutOfBounds#len.: self.columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#columns..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().(),
42 })?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().
43 .as_refrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]as_ref().())
44 }
45
46 fn try_getrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]try_get().<'r, T, I>(&'r self, index: I) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<T, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>
47 where
48 I: ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#<Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]>,
49 T: Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'r, Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
50 {
51 let value = self.try_get_rawrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow][Row]try_get_raw().(&index)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
52 let ty = value.type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]type_info().();
53
54 if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().value.is_nullrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]is_null().() && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().ty.is_nullrust-analyzer cargo sqlx-core 0.8.3 any/type_info/impl#[AnyTypeInfo][TypeInfo]is_null().() && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().T::compatiblerust-analyzer cargo sqlx-core 0.8.3 types/Type#compatible().(&ty) {
55 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(mismatched_typesrust-analyzer cargo sqlx-core 0.8.3 any/error/mismatched_types().::<T>(&ty))
56 } else {
57 T::decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#decode().(value)
58 }
59 .map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|source| Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::ColumnDecoderust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode# {
60 indexrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode#index.: formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{index:?}"),
61 sourcerust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode#source.,
62 })
63 }
64 }
65
66 impl<'i> ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#<AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#> for &'i str {
67 fn indexrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[`&'i str`][`ColumnIndex<AnyRow>`]index().(&self, row: &AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> {
68 row.column_namesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#column_names.
69 .getrust-analyzer cargo hashbrown 0.17.1 map/impl#[`HashMap<K, V, S, A>`]get().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self)
70 .copiedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<&T>`]copied().()
71 .ok_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]ok_or_else().(|| Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::ColumnNotFoundrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnNotFound#(self.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()))
72 }
73 }
74
75 impl AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow# {
76 // This is not a `TryFrom` impl because trait impls are easy for users to accidentally
77 // become reliant upon, even if hidden, but we want to be able to change the bounds
78 // on this function as the `Any` driver gains support for more types.
79 //
80 // Also `column_names` needs to be passed by the driver to avoid making deep copies.
81 #[doc(hidden)]
82 pub fn map_fromrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow]map_from().<'a, R: Rowrust-analyzer cargo sqlx-core 0.8.3 row/Row#>(
83 row: &'a R,
84 column_names: Arcrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc sync/Arc#<craterust-analyzer cargo sqlx-core 0.8.3 crate/::HashMaprust-analyzer cargo hashbrown 0.17.1 map/HashMap#<UStrrust-analyzer cargo sqlx-core 0.8.3 ext/ustr/UStr#, usize>>,
85 ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo sqlx-core 0.8.3 any/row/impl#[AnyRow], Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>
86 where
87 usize: ColumnIndexrust-analyzer cargo sqlx-core 0.8.3 column/ColumnIndex#<R>,
88 AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#: for<'b> TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<&'b <R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::TypeInforust-analyzer cargo sqlx-core 0.8.3 database/Database#TypeInfo#, Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error# = Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>,
89 AnyColumnrust-analyzer cargo sqlx-core 0.8.3 any/column/AnyColumn#: for<'b> TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<&'b <R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Columnrust-analyzer cargo sqlx-core 0.8.3 database/Database#Column#, Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error# = Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>,
90 bool: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
91 i16: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
92 i32: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
93 i64: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
94 f32: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
95 f64: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
96 Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
97 Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#> + Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'a, R::Databaserust-analyzer cargo sqlx-core 0.8.3 row/Row#Database#>,
98 {
99 let mut row_out = AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow# {
100 column_namesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#column_names.,
101 columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#columns.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]with_capacity().(row.columnsrust-analyzer cargo sqlx-core 0.8.3 row/Row#columns().().lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()),
102 valuesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#values.: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]with_capacity().(row.columnsrust-analyzer cargo sqlx-core 0.8.3 row/Row#columns().().lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()),
103 };
104
105 for col in row.columnsrust-analyzer cargo sqlx-core 0.8.3 row/Row#columns().() {
106 let i = col.ordinalrust-analyzer cargo sqlx-core 0.8.3 column/Column#ordinal().();
107
108 let any_col = AnyColumnrust-analyzer cargo sqlx-core 0.8.3 any/column/AnyColumn#::try_fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#try_from().(col)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
109
110 let value = row.try_get_rawrust-analyzer cargo sqlx-core 0.8.3 row/Row#try_get_raw().(i)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
111
112 // Map based on the _value_ type info, not the column type info.
113 let type_info =
114 AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#::try_fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#try_from().(&value.type_inforust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#type_info().()).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(|e| Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::ColumnDecoderust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode# {
115 indexrust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode#index.: col.ordinalrust-analyzer cargo sqlx-core 0.8.3 column/Column#ordinal().().to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(),
116 sourcerust-analyzer cargo sqlx-core 0.8.3 error/Error#ColumnDecode#source.: e.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
117 })?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
118
119 let value_kind = match type_info.kindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#kind. {
120 k if value.is_nullrust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#is_null().() => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(k),
121 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Null# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Null#),
122 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Bool# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
123 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#SmallInt# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
124 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Integer# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
125 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#BigInt# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
126 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Real# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
127 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Double# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().),
128 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Blob# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().::<_, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>>(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
129 AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#Text# => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().::<_, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>(value)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
130 };
131
132 row_out.columnsrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#columns..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().(any_col);
133 row_out.valuesrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#values..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]push().(AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue# { kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind.: value_kind });
134 }
135
136 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(row_out)
137 }
138 }
139
140 fn decoderust-analyzer cargo sqlx-core 0.8.3 any/row/decode().<'r, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#, T: Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#<'r, DB>>(
141 valueref: <DB as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::ValueRefrust-analyzer cargo sqlx-core 0.8.3 database/Database#ValueRef#<'r>,
142 ) -> craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<T> {
143 Decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#::decoderust-analyzer cargo sqlx-core 0.8.3 decode/Decode#decode().(valueref).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::decoderust-analyzer cargo sqlx-core 0.8.3 error/impl#[Error]decode().)
144 }