code_span/view/
convert.rs1use super::*;
2
3impl<T> From<&str> for CodeView<T>
4where
5 T: Clone,
6{
7 fn from(s: &str) -> Self {
8 CodeView::blank(s)
9 }
10}
11
12impl<T> From<String> for CodeView<T>
13where
14 T: Clone,
15{
16 fn from(s: String) -> Self {
17 CodeView::blank(s)
18 }
19}