rshtml 0.6.1

RsHtml: A Template Engine for Seamless HTML and Rust Integration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::View;
use std::ops::Deref;

pub struct TextSize<T>(pub T);

impl<T: View> TextSize<T> {
    pub fn text_size(&self) -> usize {
        self.0.text_size()
    }
}

impl<T> Deref for TextSize<T> {
    type Target = ();

    fn deref(&self) -> &Self::Target {
        &()
    }
}