1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::formatter::FormatBuffer;
use super::ManagedTypeApi;
pub trait PrintApi: ManagedTypeApi {
type PrintApiImpl: PrintApiImpl;
fn print_api_impl() -> Self::PrintApiImpl;
}
pub trait PrintApiImpl {
/// Buffer used for printing only.
type Buffer: FormatBuffer;
#[inline]
fn print_buffer(&self, _buffer: Self::Buffer) {}
}