INNER CODE UNIT · Rust
root_component
marc2332/freya · crates/freya-borderless-plugin/src/lib.rs:123
fn root_component(&self, root: Element) -> Element {
BorderlessRoot {
thickness: self.thickness,
inner: root,
}
.into_element()
}
}
#[derive(Clone, PartialEq)]
struct BorderlessRoot {
thickness: f32,
inner: Element,
}
impl Component for BorderlessRoot {
fn render(&self) -> impl IntoElement {
rect()