MCPcopy Create free account
hub / github.com/PrivateRookie/rtml / from

Method from

crates/rtml/src/basic_impl.rs:8–14  ·  view source on GitHub ↗
(src: Vec<T>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected