pub trait ToSql {
// Required method
fn write_sql_unchecked(&self, sql: &mut String);
// Provided methods
fn write_sql(&self, sql: &mut String)
where Self: CheckedSql { ... }
fn to_sql_unchecked(&self) -> String { ... }
fn to_sql(&self) -> String
where Self: CheckedSql { ... }
}
Required Methods§
fn write_sql_unchecked(&self, sql: &mut String)
Provided Methods§
fn write_sql(&self, sql: &mut String)where
Self: CheckedSql,
fn to_sql_unchecked(&self) -> String
fn to_sql(&self) -> Stringwhere
Self: CheckedSql,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.