pub enum StatementRef<'a> {
Sql(&'a str),
Prepared(&'a PreparedStatement),
}Expand description
A resolved reference to either raw SQL or a prepared statement.
Returned by IntoStatement::statement_ref to allow exhaustive
matching at call sites, replacing the old Option-returning methods
that required unwrap.
Variants§
Sql(&'a str)
Prepared(&'a PreparedStatement)
Auto Trait Implementations§
impl<'a> Freeze for StatementRef<'a>
impl<'a> RefUnwindSafe for StatementRef<'a>
impl<'a> Send for StatementRef<'a>
impl<'a> Sync for StatementRef<'a>
impl<'a> Unpin for StatementRef<'a>
impl<'a> UnsafeUnpin for StatementRef<'a>
impl<'a> UnwindSafe for StatementRef<'a>
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