1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::text::Printable; use super::{Error, Target}; pub trait Builder: Sized { type Product; fn push( self, printable: Printable, ) -> Result<Target<Self::Product, Self>, Error>; fn done(self) -> Option<Self::Product>; }