pub trait Formatter {
// Required methods
fn key(key: &[u8]) -> String;
fn value(key: &[u8], value: &[u8]) -> String;
// Provided methods
fn key_value(key: &[u8], row: impl AsRef<[u8]>) -> String { ... }
fn key_maybe_value(key: &[u8], value: Option<impl AsRef<[u8]>>) -> String { ... }
}Expand description
Formats encoded keys and values.
Required Methods§
Provided Methods§
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.