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

Commitf9fd5ce

Browse files
committed
impl From<T> for Box<dyn ToSql + Send + Sync>
1 parentc516805 commitf9fd5ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎postgres-types/src/lib.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,3 +1085,9 @@ where
10851085
self
10861086
}
10871087
}
1088+
1089+
impl<'a,T:ToSql +Send +Sync +'a>From<T>forBox<dynToSql +Send +Sync +'a>{
1090+
fnfrom(to_sql:T) ->Self{
1091+
Box::new(to_sql)
1092+
}
1093+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp