ori-core 0.1.0-alpha.1

Core library for Ori, a declarative UI framework for Rust.
Documentation
use crate::{Style, View};

#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub struct Comment {
    comment: &'static str,
}

impl Comment {
    pub fn new(comment: &'static str) -> Self {
        Self { comment }
    }
}

impl View for Comment {
    type State = ();

    fn build(&self) -> Self::State {}

    fn style(&self) -> Style {
        Style::new("comment")
    }
}