pub trait Arguments:
    Send
    + Sized
    + Default {
    type Database: Database;
    // Required methods
    fn reserve(&mut self, additional: usize, size: usize);
    fn add<'t, T>(&mut self, value: T) -> Result<(), BoxDynError>
       where T: Encode<'t, Self::Database> + Type<Self::Database>;
    fn len(&self) -> usize;
    // Provided method
    fn format_placeholder<W: Write>(&self, writer: &mut W) -> Result { ... }
}Expand description
A tuple of arguments to be sent to the database.
Required Associated Types§
Required Methods§
Sourcefn reserve(&mut self, additional: usize, size: usize)
 
fn reserve(&mut self, additional: usize, size: usize)
Reserves the capacity for at least additional more values (of size total bytes) to
be added to the arguments without a reallocation.
Sourcefn add<'t, T>(&mut self, value: T) -> Result<(), BoxDynError>
 
fn add<'t, T>(&mut self, value: T) -> Result<(), BoxDynError>
Add the value to the end of the arguments.
Provided Methods§
fn format_placeholder<W: Write>(&self, writer: &mut W) -> Result
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.