//! Hand-written illustrations of the code generated by this crate. pub enum Lorem { Str(String), Num(u16), } /// Convert into [`Num`](#variant.Num) variant. impl From for Lorem { fn from(v: String) -> Self { Lorem::Str(v) } } /// Convert into [`Num`](#variant.Num) variant. impl From for Lorem { fn from(v: u16) -> Self { Lorem::Num(v) } } pub enum Ipsum<'a, T: 'a> { Str(String), Tbd(&'a T), } /// Convert into [`Str`](#variant.Str) variant. impl<'a, T: 'a> From for Ipsum<'a, T> { fn from(v: String) -> Self { Ipsum::Str(v) } } /// Convert into [`Tbd`](#variant.Tbd) variant. impl<'a, T: 'a> From<&'a T> for Ipsum<'a, T> { fn from(v: &'a T) -> Self { Ipsum::Tbd(v) } } pub fn main() {}