Add doc comments to ToSqlOutput.

This commit is contained in:
John Gallagher 2016-05-26 00:14:19 -04:00
parent 2b830fde2d
commit 9a6e17b478

View File

@ -1,10 +1,15 @@
use super::{Null, Value, ValueRef}; use super::{Null, Value, ValueRef};
use ::Result; use ::Result;
/// ToSqlOutput represents the possible output types for implementors of the ToSql trait.
pub enum ToSqlOutput<'a> { pub enum ToSqlOutput<'a> {
/// A borrowed SQLite-representable value.
Borrowed(ValueRef<'a>), Borrowed(ValueRef<'a>),
/// An owned SQLite-representable value.
Owned(Value), Owned(Value),
/// A BLOB of the given length that is filled with zeroes.
#[cfg(feature = "blob")] #[cfg(feature = "blob")]
ZeroBlob(i32), ZeroBlob(i32),
} }