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

Commitc516805

Browse files
committed
impl BorrowToSql for:
- Box<dyn ToSql + Sync>- Box<dyn ToSql + Sync + Send>
1 parentc5591c8 commitc516805

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
@@ -1044,6 +1044,23 @@ impl BorrowToSql for &dyn ToSql {
10441044
}
10451045
}
10461046

1047+
impl sealed::SealedforBox<dynToSql +Sync>{}
1048+
1049+
implBorrowToSqlforBox<dynToSql +Sync>{
1050+
#[inline]
1051+
fnborrow_to_sql(&self) ->&dynToSql{
1052+
self.as_ref()
1053+
}
1054+
}
1055+
1056+
impl sealed::SealedforBox<dynToSql +Sync +Send>{}
1057+
implBorrowToSqlforBox<dynToSql +Sync +Send>{
1058+
#[inline]
1059+
fnborrow_to_sql(&self) ->&dynToSql{
1060+
self.as_ref()
1061+
}
1062+
}
1063+
10471064
impl sealed::Sealedfor&(dynToSql +Sync){}
10481065

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp