| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#; |
| 2 | |
| 3 | 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#, AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#, AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#}; |
| 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/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#; |
| 6 | 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#; |
| 7 | 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#}; |
| 8 | |
| 9 | #[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:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 10 | #[non_exhaustive] |
| 11 | pub enum AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#<'a> { |
| 12 | Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(AnyTypeInfoKindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfoKind#), |
| 13 | Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(bool), |
| 14 | SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(i16), |
| 15 | Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(i32), |
| 16 | BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(i64), |
| 17 | Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(f32), |
| 18 | Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(f64), |
| 19 | Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'a, str>), |
| 20 | Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'a, [u8]>), |
| 21 | } |
| 22 | |
| 23 | impl AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#<'_> { |
| 24 | fn type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]type_info().(&self) -> AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo# { |
| 25 | AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo# { |
| 26 | kindrust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#kind.: match self { |
| 27 | 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#, |
| 28 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(_) => 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#, |
| 29 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(_) => 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#, |
| 30 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(_) => 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#, |
| 31 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(_) => 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#, |
| 32 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(_) => 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#, |
| 33 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(_) => 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#, |
| 34 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(_) => 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#, |
| 35 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(_) => 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#, |
| 36 | }, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | pub(in craterust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/) fn unexpectedrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]unexpected().<Expected: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#>>(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Expected, BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#> { |
| 41 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("expected {}, got {:?}", Expected::type_inforust-analyzer cargo sqlx-core 0.8.3 types/Type#type_info().(), self).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()) |
| 42 | } |
| 43 | |
| 44 | pub(in craterust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/) fn try_integerrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]try_integer().<T>(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<T, BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#> |
| 45 | where |
| 46 | T: Typerust-analyzer cargo sqlx-core 0.8.3 types/Type#<Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#> + TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i16> + TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i32> + TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i64>, |
| 47 | BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#: Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<<T as TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i16>>::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#>, |
| 48 | BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#: Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<<T as TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i32>>::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#>, |
| 49 | BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#: Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<<T as TryFromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#<i64>>::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/TryFrom#Error#>, |
| 50 | { |
| 51 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(match self { |
| 52 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(i) => (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i).try_intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`TryInto<U>`]try_into().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 53 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(i) => (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i).try_intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`TryInto<U>`]try_into().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 54 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(i) => (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i).try_intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`TryInto<U>`]try_into().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch()., |
| 55 | _ => return self.unexpectedrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]unexpected().(), |
| 56 | }) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | #[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:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 61 | pub struct AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue# { |
| 62 | #[doc(hidden)] |
| 63 | pub kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind.: AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#<'static>, |
| 64 | } |
| 65 | |
| 66 | #[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:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 67 | pub struct AnyValueRefrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#<'a> { |
| 68 | pub(craterust-analyzer cargo sqlx-core 0.8.3 crate/) kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#kind.: AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#<'a>, |
| 69 | } |
| 70 | |
| 71 | impl Valuerust-analyzer cargo sqlx-core 0.8.3 value/Value# for AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue# { |
| 72 | type Databaserust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]Database# = Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#; |
| 73 | |
| 74 | fn as_refrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]as_ref().(&self) -> <Selfrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]::Databaserust-analyzer cargo sqlx-core 0.8.3 value/Value#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::ValueRefrust-analyzer cargo sqlx-core 0.8.3 database/Database#ValueRef#<'_> { |
| 75 | AnyValueRefrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef# { |
| 76 | kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#kind.: match &self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind. { |
| 77 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(k) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().k), |
| 78 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(b) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().b), |
| 79 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 80 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 81 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 82 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(r) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().r), |
| 83 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(d) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().d), |
| 84 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(t) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Borrowedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Borrowed#(t)), |
| 85 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(b) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Borrowedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Borrowed#(b)), |
| 86 | }, |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | fn type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]type_info().(&self) -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'_, <Selfrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]::Databaserust-analyzer cargo sqlx-core 0.8.3 value/Value#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::TypeInforust-analyzer cargo sqlx-core 0.8.3 database/Database#TypeInfo#> { |
| 91 | Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind..type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]type_info().()) |
| 92 | } |
| 93 | |
| 94 | fn is_nullrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[AnyValue][Value]is_null().(&self) -> bool { |
| 95 | matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind., AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(_)) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | impl<'a> ValueRefrust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#<'a> for AnyValueRefrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#<'a> { |
| 100 | type Databaserust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]Database# = Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#; |
| 101 | |
| 102 | fn to_ownedrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]to_owned().(&self) -> <Selfrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]::Databaserust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Valuerust-analyzer cargo sqlx-core 0.8.3 database/Database#Value# { |
| 103 | AnyValuerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue# { |
| 104 | kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValue#kind.: match &self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#kind. { |
| 105 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(k) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().k), |
| 106 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(b) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Boolrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Bool#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().b), |
| 107 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::SmallIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#SmallInt#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 108 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Integerrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Integer#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 109 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(i) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::BigIntrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#BigInt#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().i), |
| 110 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(r) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Realrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Real#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().r), |
| 111 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(d) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Doublerust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Double#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().d), |
| 112 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(t) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Textrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Text#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(t.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())), |
| 113 | AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(b) => AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Blobrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Blob#(Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(b.to_vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]to_vec().())), |
| 114 | }, |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | fn type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]type_info().(&self) -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'_, <Selfrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]::Databaserust-analyzer cargo sqlx-core 0.8.3 value/ValueRef#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::TypeInforust-analyzer cargo sqlx-core 0.8.3 database/Database#TypeInfo#> { |
| 119 | Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#kind..type_inforust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueKind<'_>`]type_info().()) |
| 120 | } |
| 121 | |
| 122 | fn is_nullrust-analyzer cargo sqlx-core 0.8.3 any/value/impl#[`AnyValueRef<'a>`][`ValueRef<'a>`]is_null().(&self) -> bool { |
| 123 | matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(self.kindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueRef#kind., AnyValueKindrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#::Nullrust-analyzer cargo sqlx-core 0.8.3 any/value/AnyValueKind#Null#(_)) |
| 124 | } |
| 125 | } |