mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
11 lines
472 B
Rust
11 lines
472 B
Rust
use crate::*;
|
|
|
|
pub struct FieldH<Theme, Label, Value>(pub Theme, pub Label, pub Value);
|
|
impl<O: Out, T, L: Content<O>, V: Content<O>> HasContent<O> for FieldH<T, L, V> {
|
|
fn content (&self) -> impl Content<O> { Bsp::e(&self.1, &self.2) }
|
|
}
|
|
|
|
pub struct FieldV<Theme, Label, Value>(pub Theme, pub Label, pub Value);
|
|
impl<O: Out, T, L: Content<O>, V: Content<O>> HasContent<O> for FieldV<T, L, V> {
|
|
fn content (&self) -> impl Content<O> { Bsp::s(&self.1, &self.2) }
|
|
}
|