pub struct OwnedSQL<V: SQLParam> {
pub chunks: SmallVec<[OwnedSQLChunk<V>; 8]>,
}Expand description
Owned version of SQL with ’static lifetime
Fields§
§chunks: SmallVec<[OwnedSQLChunk<V>; 8]>Implementations§
Trait Implementations§
Source§impl<V: SQLParam> ToSQL<'static, V> for OwnedSQL<V>
impl<V: SQLParam> ToSQL<'static, V> for OwnedSQL<V>
fn to_sql(&self) -> SQL<'static, V>
Source§fn into_sql(self) -> SQL<'static, V>
fn into_sql(self) -> SQL<'static, V>
Consume self and return SQL without cloning.
Default delegates to
to_sql() (which clones). Types that own their SQL
(like SQL and SQLExpr) override this to avoid the clone.fn alias(&self, alias: &'static str) -> SQL<'a, V>
Auto Trait Implementations§
impl<V> Freeze for OwnedSQL<V>where
V: Freeze,
impl<V> !RefUnwindSafe for OwnedSQL<V>
impl<V> Send for OwnedSQL<V>where
V: Send,
impl<V> Sync for OwnedSQL<V>where
V: Sync,
impl<V> Unpin for OwnedSQL<V>where
V: Unpin,
impl<V> !UnwindSafe for OwnedSQL<V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more