Trait postgres_types::BorrowToSql[][src]

pub trait BorrowToSql: Sealed {
    fn borrow_to_sql(&self) -> &dyn ToSql;
}

A trait used by clients to abstract over &dyn ToSql and T: ToSql.

This cannot be implemented outside of this crate.

Required methods

fn borrow_to_sql(&self) -> &dyn ToSql[src]

Returns a reference to self as a ToSql trait object.

Loading content...

Implementors

impl BorrowToSql for &dyn ToSql[src]

impl<T> BorrowToSql for T where
    T: ToSql
[src]

Loading content...