pub trait WriteOps {
// Required method
fn write_full(
&self,
batch: &WriteBatch,
writeopts: Option<&WriteOptions>,
) -> Result<(), Error>;
// Provided methods
fn write(&self, batch: &WriteBatch) -> Result<(), Error> { ... }
fn write_opt(
&self,
batch: &WriteBatch,
writeopts: &WriteOptions,
) -> Result<(), Error> { ... }
fn write_without_wal(&self, batch: &WriteBatch) -> Result<(), Error> { ... }
}