1 2 3 4 5 6
use std::{borrow::Cow, fmt}; pub trait Post: fmt::Debug + Ord { fn get_title(&self) -> &str; fn get_article(&self) -> Cow<str>; }