Trait tokio_postgres::types::BorrowToSql [−][src]
pub trait BorrowToSql: Sealed {
pub 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
pub fn borrow_to_sql(&self) -> &dyn ToSql[src]
Returns a reference to self as a ToSql trait object.
Implementors
impl<'_> BorrowToSql for &'_ (dyn ToSql + '_)[src]
impl<'_> BorrowToSql for &'_ (dyn ToSql + '_)[src]pub fn borrow_to_sql(&self) -> &dyn ToSql[src]
impl<T> BorrowToSql for T where
T: ToSql, [src]
impl<T> BorrowToSql for T where
T: ToSql, [src]