Struct postgres::types::Slice
[−]
[src]
pub struct Slice<'a, T: 'a + ToSql>(pub &'a [T]);
Deprecated
ToSql
is now implemented directly for slices.
Trait Implementations
impl<'a, T: Debug + 'a + ToSql> Debug for Slice<'a, T>
[src]
impl<'a, T: 'a + ToSql> ToSql for Slice<'a, T>
[src]
fn to_sql<W: Write + ?Sized>(&self, ty: &Type, w: &mut W, ctx: &SessionInfo) -> Result<IsNull>
Converts the value of self
into the binary format of the specified Postgres Type
, writing it to out
. Read more
fn accepts(ty: &Type) -> bool
Determines if a value of this type can be converted to the specified Postgres Type
. Read more
fn to_sql_checked(&self, ty: &Type, out: &mut Write, ctx: &SessionInfo) -> Result<IsNull>
An adaptor method used internally by Rust-Postgres. Read more