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