(src: Vec<T>)
| 6 | T: Template + 'static, |
| 7 | { |
| 8 | fn from(src: Vec<T>) -> Self { |
| 9 | Self::Static(StaticContent::List( |
| 10 | src.into_iter() |
| 11 | .map(|item| Box::new(item) as Box<dyn Template>) |
| 12 | .collect(), |
| 13 | )) |
| 14 | } |
| 15 | } |
| 16 | impl<T> From<Vec<T>> for StaticContent |
| 17 | where |
nothing calls this directly
no outgoing calls
no test coverage detected