html-types 0.4.0

HTML Data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub struct Javascript(String);

impl Javascript {
    pub fn create(text: String) -> Self {
        Javascript(text)
    }
}

impl From<Javascript> for String {
    fn from(value: Javascript) -> Self {
        value.0
    }
}