aboutsummaryrefslogtreecommitdiff
path: root/examples/generics/interfaces/printer.rs
blob: 3098d0bc04e8b33c9418e94219b9b25d517e5cd1 (plain)
1
2
3
4
5
6
use std::fmt::Display;

pub trait IPrinter<Printable: Display>
{
    fn print(&self, out: Printable);
}