ori_core/views/
comment.rs

1use crate::{Style, View};
2
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
4pub struct Comment {
5    comment: &'static str,
6}
7
8impl Comment {
9    pub fn new(comment: &'static str) -> Self {
10        Self { comment }
11    }
12}
13
14impl View for Comment {
15    type State = ();
16
17    fn build(&self) -> Self::State {}
18
19    fn style(&self) -> Style {
20        Style::new("comment")
21    }
22}