1 2 3 4 5 6 7 8 9
use crate::algorithm::Printer; use syn::Lifetime; impl Printer { pub fn lifetime(&mut self, lifetime: &Lifetime) { self.word("'"); self.ident(&lifetime.ident); } }