Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86c914c

Browse files
authored
Merge pull request#853 from elpiel/boxed-dyn-ToSql
Boxed owned query parameters
2 parents774016d +c516805 commit86c914c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎postgres-types/src/lib.rs‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,23 @@ impl BorrowToSql for &dyn ToSql {
10831083
}
10841084
}
10851085

1086+
impl sealed::SealedforBox<dynToSql +Sync>{}
1087+
1088+
implBorrowToSqlforBox<dynToSql +Sync>{
1089+
#[inline]
1090+
fnborrow_to_sql(&self) ->&dynToSql{
1091+
self.as_ref()
1092+
}
1093+
}
1094+
1095+
impl sealed::SealedforBox<dynToSql +Sync +Send>{}
1096+
implBorrowToSqlforBox<dynToSql +Sync +Send>{
1097+
#[inline]
1098+
fnborrow_to_sql(&self) ->&dynToSql{
1099+
self.as_ref()
1100+
}
1101+
}
1102+
10861103
impl sealed::Sealedfor&(dynToSql +Sync){}
10871104

10881105
/// In async contexts it is sometimes necessary to have the additional

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp