mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 20:52:19 +08:00
Merge branch 'master' of https://github.com/jgallagher/rusqlite into functions
This commit is contained in:
@@ -106,7 +106,7 @@ impl ToResult for Null {
|
||||
// sqlite3_result_value
|
||||
|
||||
/// A trait for types that can be created from a SQLite function parameter value.
|
||||
pub trait FromValue {
|
||||
pub trait FromValue: Sized {
|
||||
unsafe fn parameter_value(v: *mut sqlite3_value) -> SqliteResult<Self>;
|
||||
|
||||
/// FromValue types can implement this method and use sqlite3_value_type to check that
|
||||
@@ -327,4 +327,4 @@ mod test {
|
||||
|
||||
assert_eq!(true, result.unwrap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user