use crate::{AsValue, Result};
use std::{
any::Any,
fmt::{Debug, Display},
};
pub trait Prepared: Any + Send + Sync + Display + Debug {
fn as_any(self: Box<Self>) -> Box<dyn Any>;
fn clear_bindings(&mut self) -> Result<&mut Self>
where
Self: Sized;
fn bind(&mut self, value: impl AsValue) -> Result<&mut Self>
where
Self: Sized;
fn bind_index(&mut self, value: impl AsValue, index: u64) -> Result<&mut Self>
where
Self: Sized;
fn is_empty(&self) -> bool {
false
}
}