pub enum RawArg {
Value(Value),
Expr(Expr),
Named(Cow<'static, str>),
}Expand description
One replacement for a ? in an Expr::Template.
A ? either binds a value or splices in a whole expression. The second form
is what lets WHERE id IN (?) expand to IN ($3, $4, $5): the nested
expression consumes as many placeholder positions as it binds arguments, and
the counter keeps going from there.
Variants§
Value(Value)
Bind a value; the ? becomes the dialect’s positional placeholder.
Expr(Expr)
Render an expression in place of the ?.
Named(Cow<'static, str>)
Write a named placeholder. Binds nothing, consumes no position, and
records Error::NoNamedArgs on a dialect that has no named-argument
syntax.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RawArg
impl !UnwindSafe for RawArg
impl Freeze for RawArg
impl Send for RawArg
impl Sync for RawArg
impl Unpin for RawArg
impl UnsafeUnpin for RawArg
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